zero - try this?

This commit is contained in:
goyuken 2013-04-21 19:00:22 +00:00
parent c577eb4854
commit b2c0910376
1 changed files with 9 additions and 4 deletions

View File

@ -12,10 +12,14 @@ HitachiDSP hitachidsp;
void HitachiDSP::Enter() { hitachidsp.enter(); }
void HitachiDSP::enter() {
while(true) {
while(true) {
// exit requested due to savestate
if(scheduler.sync == Scheduler::SynchronizeMode::All) {
scheduler.exit(Scheduler::ExitReason::SynchronizeEvent);
}
}
// if we bail out due to savestating, the first thing we'll try afterwards is synchronize_cpu() again
synchronize_cpu();
switch(state) {
case State::Idle:
@ -37,8 +41,9 @@ void HitachiDSP::enter() {
step(1);
break;
}
synchronize_cpu();
// this call is gone, but it's the first thing we try at the top of the loop AFTER we bail out
//synchronize_cpu();
}
}