mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 11:27:00 +00:00
Only set eip to the instruction pointer after an interrupt if the interrupt was user-generated (#875)
This commit is contained in:
parent
a893bcf138
commit
363cbacee4
|
@ -143,8 +143,10 @@ int cpu_exec(struct uc_struct *uc, CPUArchState *env) // qq
|
||||||
}
|
}
|
||||||
cpu->exception_index = -1;
|
cpu->exception_index = -1;
|
||||||
#if defined(TARGET_X86_64)
|
#if defined(TARGET_X86_64)
|
||||||
|
if (env->exception_is_int) {
|
||||||
// point EIP to the next instruction after INT
|
// point EIP to the next instruction after INT
|
||||||
env->eip = env->exception_next_eip;
|
env->eip = env->exception_next_eip;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(TARGET_MIPS) || defined(TARGET_MIPS64)
|
#if defined(TARGET_MIPS) || defined(TARGET_MIPS64)
|
||||||
env->active_tc.PC = uc->next_pc;
|
env->active_tc.PC = uc->next_pc;
|
||||||
|
|
Loading…
Reference in a new issue