mirror of https://github.com/mgba-emu/mgba.git
ARM7: Fix STRT/STRBT
This commit is contained in:
parent
1ca65ba36b
commit
17b99e2b90
1
CHANGES
1
CHANGES
|
@ -21,6 +21,7 @@ Bugfixes:
|
||||||
- GBA BIOS: Fix misaligned RLUnCompReadNormalWrite*
|
- GBA BIOS: Fix misaligned RLUnCompReadNormalWrite*
|
||||||
- Qt: Fix race condition with setting sample rate
|
- Qt: Fix race condition with setting sample rate
|
||||||
- GBA Memory: Fix timing of DMAs
|
- GBA Memory: Fix timing of DMAs
|
||||||
|
- ARM7: Fix STRT/STRBT
|
||||||
Misc:
|
Misc:
|
||||||
- GBA Audio: Implement missing flags on SOUNDCNT_X register
|
- GBA Audio: Implement missing flags on SOUNDCNT_X register
|
||||||
|
|
||||||
|
|
|
@ -554,14 +554,14 @@ DEFINE_LOAD_STORE_T_INSTRUCTION_ARM(LDRT,
|
||||||
DEFINE_LOAD_STORE_T_INSTRUCTION_ARM(STRBT,
|
DEFINE_LOAD_STORE_T_INSTRUCTION_ARM(STRBT,
|
||||||
enum PrivilegeMode priv = cpu->privilegeMode;
|
enum PrivilegeMode priv = cpu->privilegeMode;
|
||||||
ARMSetPrivilegeMode(cpu, MODE_USER);
|
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);
|
ARMSetPrivilegeMode(cpu, priv);
|
||||||
ARM_STORE_POST_BODY;)
|
ARM_STORE_POST_BODY;)
|
||||||
|
|
||||||
DEFINE_LOAD_STORE_T_INSTRUCTION_ARM(STRT,
|
DEFINE_LOAD_STORE_T_INSTRUCTION_ARM(STRT,
|
||||||
enum PrivilegeMode priv = cpu->privilegeMode;
|
enum PrivilegeMode priv = cpu->privilegeMode;
|
||||||
ARMSetPrivilegeMode(cpu, MODE_USER);
|
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);
|
ARMSetPrivilegeMode(cpu, priv);
|
||||||
ARM_STORE_POST_BODY;)
|
ARM_STORE_POST_BODY;)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue