fix bug savestating SA1 hung in STP or WAI. fixes panic bomber.

This commit is contained in:
zeromus 2017-04-05 17:35:06 -05:00
parent 7814c26d9d
commit 9119e4f4ea
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ L rd.h = op_readlong(vectorN + 1);
void CPUcore::op_stp() {
while(regs.wai = true) {
L op_io();
scheduler.exit(Scheduler::ExitReason::SynchronizeEvent);
}
}
@ -81,6 +82,7 @@ void CPUcore::op_wai() {
regs.wai = true;
while(regs.wai) {
L op_io();
scheduler.exit(Scheduler::ExitReason::SynchronizeEvent);
}
op_io();
}