GBA Memory: Fix loading Thumb savestates when in ARM mode

This commit is contained in:
Vicki Pfau 2021-03-29 21:06:08 -07:00
parent a4177f8e84
commit 49ee6dc302
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
0.10.0: (Future)
Emulation fixes:
- GBA Memory: Fix loading Thumb savestates when in ARM mode
0.9.0: (2021-03-28)
Features:
- e-Reader card scanning

View File

@ -345,7 +345,7 @@ static void GBASetActiveRegion(struct ARMCore* cpu, uint32_t address) {
cpu->memory.activeSeqCycles16 = memory->waitstatesSeq16[memory->activeRegion];
cpu->memory.activeNonseqCycles32 = memory->waitstatesNonseq32[memory->activeRegion];
cpu->memory.activeNonseqCycles16 = memory->waitstatesNonseq16[memory->activeRegion];
cpu->memory.activeMask &= -(cpu->executionMode == MODE_THUMB ? WORD_SIZE_THUMB : WORD_SIZE_ARM);
cpu->memory.activeMask &= -(cpu->cpsr.t ? WORD_SIZE_THUMB : WORD_SIZE_ARM);
}
#define LOAD_BAD \