Respect users' decision for UC_ERR_INSN_INVALID

This commit is contained in:
mio
2024-03-08 17:31:27 +08:00
parent a9a54aed2f
commit e03109d8c9

View File

@@ -354,11 +354,10 @@ static inline bool cpu_handle_exception(CPUState *cpu, int *ret)
}
if (!catched) {
uc->invalid_error = UC_ERR_INSN_INVALID;
// we want to stop emulation
*ret = EXCP_HLT;
return true;
}
// we want to stop emulation
*ret = EXCP_HLT;
return true;
}
if (cpu->exception_index < 0) {