ARM7: Fix STRT/STRBT
Jeffrey Pfau jeffrey@endrift.com
Fri, 20 Nov 2015 19:10:17 -0800
2 files changed,
3 insertions(+),
2 deletions(-)
M
CHANGES
→
CHANGES
@@ -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.c
→
src/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], ¤tCycles); + cpu->memory.store8(cpu, address, cpu->gprs[rd], ¤tCycles); 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], ¤tCycles); + cpu->memory.store32(cpu, address, cpu->gprs[rd], ¤tCycles); ARMSetPrivilegeMode(cpu, priv); ARM_STORE_POST_BODY;)