all repos — mgba @ 9cda63f6c0a6d12cbb25438d0a85fef762f46f04

mGBA Game Boy Advance Emulator

GBA Memory: Fix optimizations breaking GBALoad16 (fixes #82)
Jeffrey Pfau jeffrey@endrift.com
Sat, 15 Aug 2015 18:06:06 -0700
commit

9cda63f6c0a6d12cbb25438d0a85fef762f46f04

parent

ae1fecd4c8c02d1ddf321cad835eb9f63730f320

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/gba/memory.csrc/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; }