mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 14:35:34 +00:00
target/mips: Fix ERET/ERETNC behavior related to ADEL exception
Fix ERET/ERETNC so that ADEL exception can be raised. Backports commit 26324ded91a5ad08a5de8f32b8ed5e5e243154cf from qemu
This commit is contained in:
parent
7473e6dbe6
commit
d53c021cea
|
@ -2421,10 +2421,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 */
|
||||
|
|
Loading…
Reference in a new issue