mirror of https://github.com/mgba-emu/mgba.git
GBA Memory: Fix loading Thumb savestates when in ARM mode
This commit is contained in:
parent
a4177f8e84
commit
49ee6dc302
4
CHANGES
4
CHANGES
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue