Skip to content

Commit

Permalink
Respect users' decision for UC_ERR_INSN_INVALID
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Mar 8, 2024
1 parent a9a54ae commit e03109d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions qemu/accel/tcg/cpu-exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e03109d

Please sign in to comment.