From 239351bdfc127e000b6610ec73ade8ee3a228cfc Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 29 Dec 2020 02:10:29 -0800 Subject: [PATCH] GB: Fix regression with HDMAs not always properly blocking --- src/gb/gb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gb/gb.c b/src/gb/gb.c index 5f4207880..fdc30724b 100644 --- a/src/gb/gb.c +++ b/src/gb/gb.c @@ -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) {