mirror of https://github.com/mgba-emu/mgba.git
GBA Memory: Fix open bus from IWRAM (fixes #1575)
This commit is contained in:
parent
77ab0ef770
commit
6900d130ae
1
CHANGES
1
CHANGES
|
@ -91,6 +91,7 @@ Emulation fixes:
|
||||||
- ARM: Partially fix LDM/STM writeback with empty register list
|
- 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 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 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:
|
Other fixes:
|
||||||
- 3DS: Fix screen darkening (fixes mgba.io/i/1562)
|
- 3DS: Fix screen darkening (fixes mgba.io/i/1562)
|
||||||
- Vita: Fix analog controls (fixes mgba.io/i/1554)
|
- Vita: Fix analog controls (fixes mgba.io/i/1554)
|
||||||
|
|
|
@ -353,10 +353,10 @@ static void GBASetActiveRegion(struct ARMCore* cpu, uint32_t address) {
|
||||||
case REGION_WORKING_IRAM: \
|
case REGION_WORKING_IRAM: \
|
||||||
/* This doesn't handle prefetch clobbering */ \
|
/* This doesn't handle prefetch clobbering */ \
|
||||||
if (cpu->gprs[ARM_PC] & 2) { \
|
if (cpu->gprs[ARM_PC] & 2) { \
|
||||||
value |= cpu->prefetch[0] << 16; \
|
|
||||||
} else { \
|
|
||||||
value <<= 16; \
|
value <<= 16; \
|
||||||
value |= cpu->prefetch[0]; \
|
value |= cpu->prefetch[0]; \
|
||||||
|
} else { \
|
||||||
|
value |= cpu->prefetch[0] << 16; \
|
||||||
} \
|
} \
|
||||||
break; \
|
break; \
|
||||||
default: \
|
default: \
|
||||||
|
|
Loading…
Reference in New Issue