Only set eip to the instruction pointer after an interrupt if the interrupt was user-generated (#875)
This commit is contained in:

committed by
Nguyen Anh Quynh

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)
|
||||||
// point EIP to the next instruction after INT
|
if (env->exception_is_int) {
|
||||||
env->eip = env->exception_next_eip;
|
// point EIP to the next instruction after INT
|
||||||
|
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;
|
||||||
|
Reference in New Issue
Block a user