Fix regression: We should triage MIPS internal exceptions to Unicorn exceptions
This commit is contained in:
@@ -408,7 +408,9 @@ static inline bool cpu_handle_exception(CPUState *cpu, int *ret)
|
||||
// Unicorn: If un-catched interrupt, stop executions.
|
||||
if (!catched) {
|
||||
// printf("AAAAAAAAAAAA\n"); qq
|
||||
uc->invalid_error = UC_ERR_EXCEPTION;
|
||||
if (uc->invalid_error == UC_ERR_OK) {
|
||||
uc->invalid_error = UC_ERR_EXCEPTION;
|
||||
}
|
||||
cpu->halted = 1;
|
||||
*ret = EXCP_HLT;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user