GBA Memory: Fix open bus from IWRAM (fixes #1575)

This commit is contained in:
Vicki Pfau 2019-11-11 18:24:49 -08:00
parent 77ab0ef770
commit 6900d130ae
2 changed files with 3 additions and 2 deletions

View File

@ -91,6 +91,7 @@ Emulation fixes:
- ARM: Partially fix LDM/STM writeback with empty register list
- GBA DMA: Fix case where DMAs could get misaligned (fixes mgba.io/i/1092)
- GBA Video: Fix OpenGL renderer 512x512 backgrounds (fixes mgba.io/i/1572)
- GBA Memory: Fix open bus from IWRAM (fixes mgba.io/i/1575)
Other fixes:
- 3DS: Fix screen darkening (fixes mgba.io/i/1562)
- Vita: Fix analog controls (fixes mgba.io/i/1554)

View File

@ -353,10 +353,10 @@ static void GBASetActiveRegion(struct ARMCore* cpu, uint32_t address) {
case REGION_WORKING_IRAM: \
/* This doesn't handle prefetch clobbering */ \
if (cpu->gprs[ARM_PC] & 2) { \
value |= cpu->prefetch[0] << 16; \
} else { \
value <<= 16; \
value |= cpu->prefetch[0]; \
} else { \
value |= cpu->prefetch[0] << 16; \
} \
break; \
default: \