Bochs tweak: properly handle restore() after TimerEvent

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1331 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-06-12 15:13:15 +00:00
parent 5f3df24cf5
commit f74c794789

View File

@ -507,6 +507,13 @@ unsigned BX_CPU_C::handleAsyncEvent(void)
#endif
BX_TICKN(10); // when in HLT run time faster for single CPU
// DanceOS
#ifdef DANCEOS_RESTORE
if (fail::restore_bochs_request) {
return 1;
}
#endif
}
} else if (bx_pc_system.kill_bochs_request) {
// setting kill_bochs_request causes the cpu loop to return ASAP.