Fix regression: If invalid instruction is handled, allow emulation to continue

This commit is contained in:
2024-12-07 17:30:45 +08:00
parent 3b2f54fc61
commit 69200d4f00
2 changed files with 74 additions and 0 deletions

View File

@@ -359,6 +359,9 @@ static inline bool cpu_handle_exception(CPUState *cpu, int *ret)
// we want to stop emulation
*ret = EXCP_HLT;
return true;
} else {
// Continue execution because user hints us it has been handled
cpu->exception_index = -1;
}
}