GBA Memory: Fix optimizations breaking GBALoad16 (fixes #82)
Jeffrey Pfau jeffrey@endrift.com
Sat, 15 Aug 2015 18:06:06 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/gba/memory.c
→
src/gba/memory.c
@@ -446,7 +446,7 @@ }
} else { GBALog(gba, GBA_LOG_GAME_ERROR, "Bad memory Load16: 0x%08X", address); LOAD_BAD; - uint32_t v2 = value; + volatile uint32_t v2 = value; LOAD_16(value, address & 2, &v2); } break;@@ -506,7 +506,7 @@ break;
default: GBALog(gba, GBA_LOG_GAME_ERROR, "Bad memory Load16: 0x%08X", address); LOAD_BAD; - uint32_t v2 = value; + volatile uint32_t v2 = value; LOAD_16(value, address & 2, &v2); break; }