Respect users' decision for UC_ERR_INSN_INVALID
This commit is contained in:
@@ -354,12 +354,11 @@ static inline bool cpu_handle_exception(CPUState *cpu, int *ret)
|
|||||||
}
|
}
|
||||||
if (!catched) {
|
if (!catched) {
|
||||||
uc->invalid_error = UC_ERR_INSN_INVALID;
|
uc->invalid_error = UC_ERR_INSN_INVALID;
|
||||||
}
|
|
||||||
|
|
||||||
// we want to stop emulation
|
// we want to stop emulation
|
||||||
*ret = EXCP_HLT;
|
*ret = EXCP_HLT;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (cpu->exception_index < 0) {
|
if (cpu->exception_index < 0) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user