LDM should force-align loads
Jeffrey Pfau jeffrey@endrift.com
Wed, 31 Jul 2013 01:58:40 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/arm/isa-arm.c
→
src/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;