all repos — mgba @ fad1daf3e916b54ba89a9b7b4d284a2c9fdf42cb

mGBA Game Boy Advance Emulator

ARM7: Fix STRT/STRBT
Jeffrey Pfau jeffrey@endrift.com
Fri, 20 Nov 2015 19:10:17 -0800
commit

fad1daf3e916b54ba89a9b7b4d284a2c9fdf42cb

parent

2fa87cb8f0177dbd8f458def9a69021838203d2a

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

jump to
M CHANGESCHANGES

@@ -34,6 +34,7 @@ - GBA BIOS: Fix misaligned RLUnCompReadNormalWrite*

- Qt: Fix race condition with setting sample rate - GBA Memory: Fix timing of DMAs - GBA Memory: Fix DMAs triggering two cycles early + - ARM7: Fix STRT/STRBT Misc: - Qt: Window size command line options are now supported - Qt: Increase usability of key mapper
M src/arm/isa-arm.csrc/arm/isa-arm.c

@@ -538,14 +538,14 @@

DEFINE_LOAD_STORE_T_INSTRUCTION_ARM(STRBT, enum PrivilegeMode priv = cpu->privilegeMode; ARMSetPrivilegeMode(cpu, MODE_USER); - cpu->memory.store32(cpu, address, cpu->gprs[rd], &currentCycles); + cpu->memory.store8(cpu, address, cpu->gprs[rd], &currentCycles); ARMSetPrivilegeMode(cpu, priv); ARM_STORE_POST_BODY;) DEFINE_LOAD_STORE_T_INSTRUCTION_ARM(STRT, enum PrivilegeMode priv = cpu->privilegeMode; ARMSetPrivilegeMode(cpu, MODE_USER); - cpu->memory.store8(cpu, address, cpu->gprs[rd], &currentCycles); + cpu->memory.store32(cpu, address, cpu->gprs[rd], &currentCycles); ARMSetPrivilegeMode(cpu, priv); ARM_STORE_POST_BODY;)