mirror of https://github.com/mgba-emu/mgba.git
ARM7: Fix STRT/STRBT
This commit is contained in:
parent
2fa87cb8f0
commit
fad1daf3e9
1
CHANGES
1
CHANGES
|
@ -34,6 +34,7 @@ Bugfixes:
|
||||||
- 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
|
||||||
- GBA Memory: Fix DMAs triggering two cycles early
|
- GBA Memory: Fix DMAs triggering two cycles early
|
||||||
|
- ARM7: Fix STRT/STRBT
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Window size command line options are now supported
|
- Qt: Window size command line options are now supported
|
||||||
- Qt: Increase usability of key mapper
|
- Qt: Increase usability of key mapper
|
||||||
|
|
|
@ -538,14 +538,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