Skip to content

Commit

Permalink
target-mips: correct DERET instruction
Browse files Browse the repository at this point in the history
Fix Debug Mode flag clearing, and when DERET is placed between LL and SC
do not make SC fail.

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
  • Loading branch information
Leon Alrae committed Jul 15, 2015
1 parent 6a973e6 commit fe87c2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions target-mips/op_helper.c
Expand Up @@ -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 */

Expand Down

0 comments on commit fe87c2b

Please sign in to comment.