GB: Fix regression with HDMAs not always properly blocking
Vicki Pfau vi@endrift.com
Tue, 29 Dec 2020 02:10:29 -0800
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/gb/gb.c
→
src/gb/gb.c
@@ -715,7 +715,8 @@ #ifdef USE_DEBUGGERS
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) {