ARM7: Fix STRT/STRBT

This commit is contained in:
Jeffrey Pfau 2015-11-20 19:10:17 -08:00
parent 1ca65ba36b
commit 17b99e2b90
2 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@ Bugfixes:
- GBA BIOS: Fix misaligned RLUnCompReadNormalWrite*
- Qt: Fix race condition with setting sample rate
- GBA Memory: Fix timing of DMAs
- ARM7: Fix STRT/STRBT
Misc:
- GBA Audio: Implement missing flags on SOUNDCNT_X register

View File

@ -554,14 +554,14 @@ DEFINE_LOAD_STORE_T_INSTRUCTION_ARM(LDRT,
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;)