diff --git a/simulators/bochs/cpu/cpu.cc b/simulators/bochs/cpu/cpu.cc index f4c4e169..2131687e 100644 --- a/simulators/bochs/cpu/cpu.cc +++ b/simulators/bochs/cpu/cpu.cc @@ -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.