From 46f01969d89c570cf47f9945ff8553022094379b Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 23 Feb 2017 21:52:15 -0800 Subject: [PATCH] DS Memory: Fix BIOS9 waitstates --- src/ds/memory.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ds/memory.c b/src/ds/memory.c index d1baf9e2f..eb28e32b1 100644 --- a/src/ds/memory.c +++ b/src/ds/memory.c @@ -707,7 +707,11 @@ static void DS9SetActiveRegion(struct ARMCore* cpu, uint32_t address) { cpu->memory.activeRegion = _deadbeef; cpu->memory.activeMask = 0; } - break; + cpu->memory.activeSeqCycles32 = 0; + cpu->memory.activeSeqCycles16 = 0; + cpu->memory.activeNonseqCycles32 = 0; + cpu->memory.activeNonseqCycles16 = 0; + return; default: jump_error: memory->activeRegion = -1;