GB: Fix regression with HDMAs not always properly blocking

This commit is contained in:
Vicki Pfau 2020-12-29 02:10:29 -08:00
parent 2ee7642d0b
commit 239351bdfc
1 changed files with 2 additions and 1 deletions

View File

@ -715,7 +715,8 @@ void GBProcessEvents(struct SM83Core* cpu) {
gb->timing.globalCycles += nextEvent;
#endif
nextEvent = mTimingTick(&gb->timing, nextEvent);
} while (gb->cpuBlocked && !gb->earlyExit);
} while (gb->cpuBlocked);
// This loop cannot early exit until the SM83 run loop properly handles mid-M-cycle-exits
cpu->nextEvent = nextEvent;
if (cpu->halted) {