all repos — mgba @ 239351bdfc127e000b6610ec73ade8ee3a228cfc

mGBA Game Boy Advance Emulator

GB: Fix regression with HDMAs not always properly blocking
Vicki Pfau vi@endrift.com
Tue, 29 Dec 2020 02:10:29 -0800
commit

239351bdfc127e000b6610ec73ade8ee3a228cfc

parent

2ee7642d0ba2ec66488e3bf4897d6196ee281723

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/gb/gb.csrc/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) {