all repos — mgba @ 6b86cdf9ef5369884c33a44ee7941698a6feeec4

mGBA Game Boy Advance Emulator

LDM should force-align loads
Jeffrey Pfau jeffrey@endrift.com
Wed, 31 Jul 2013 01:58:40 -0700
commit

6b86cdf9ef5369884c33a44ee7941698a6feeec4

parent

3301cc9f979fac87b1cd4d5cab9dc7461b7cdd36

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/arm/isa-arm.csrc/arm/isa-arm.c

@@ -698,7 +698,7 @@ ARMSetPrivilegeMode(cpu, priv);

ARM_STORE_POST_BODY;) DEFINE_LOAD_STORE_MULTIPLE_INSTRUCTION_ARM(LDM, - cpu->gprs[i] = cpu->memory->load32(cpu->memory, addr, 0);, + cpu->gprs[i] = cpu->memory->load32(cpu->memory, addr & 0xFFFFFFFC, 0);, ++currentCycles; if (rs & 0x8000) { ARM_WRITE_PC;