summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target/mips/op_helper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c
index b3eef9f1e2..c148b310cd 100644
--- a/target/mips/op_helper.c
+++ b/target/mips/op_helper.c
@@ -2427,10 +2427,12 @@ void helper_eretnc(CPUMIPSState *env)
void helper_deret(CPUMIPSState *env)
{
debug_pre_eret(env);
- set_pc(env, env->CP0_DEPC);
env->hflags &= ~MIPS_HFLAG_DM;
compute_hflags(env);
+
+ set_pc(env, env->CP0_DEPC);
+
debug_post_eret(env);
}
#endif /* !CONFIG_USER_ONLY */