Received: from eggs.gnu.org ([2001:4830:134:3::10]:35654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEx8i-0007A5-5h for qemu-devel@nongnu.org; Tue, 14 Jul 2015 06:08:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEx8d-0000TB-2q for qemu-devel@nongnu.org; Tue, 14 Jul 2015 06:08:40 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:30908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEx8c-0000T3-UA for qemu-devel@nongnu.org; Tue, 14 Jul 2015 06:08:35 -0400 From: Leon Alrae Date: Tue, 14 Jul 2015 11:08:13 +0100 Message-ID: <1436868495-4359-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH] target-mips: correct DERET instruction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net Fix Debug Mode flag clearing, and when DERET is placed between LL and SC do not make SC fail. Signed-off-by: Leon Alrae --- target-mips/op_helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index 2a9ddff..d461ad8 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@ -2154,10 +2154,9 @@ void helper_deret(CPUMIPSState *env) debug_pre_eret(env); set_pc(env, env->CP0_DEPC); - env->hflags &= MIPS_HFLAG_DM; + env->hflags &= ~MIPS_HFLAG_DM; compute_hflags(env); debug_post_eret(env); - env->lladdr = 1; } #endif /* !CONFIG_USER_ONLY */ -- 2.1.0