mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 05:25:11 +00:00
target-mips: correct DERET instruction
Fix Debug Mode flag clearing, and when DERET is placed between LL and SC do not make SC fail. Backports commit fe87c2b36ae9c1c9a5279f3891f3bce1b573baa0 from qemu
This commit is contained in:
parent
5ee529edd3
commit
884fe72f54
|
@ -2162,10 +2162,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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue