From 6b86cdf9ef5369884c33a44ee7941698a6feeec4 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 31 Jul 2013 01:58:40 -0700 Subject: [PATCH] LDM should force-align loads --- src/arm/isa-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arm/isa-arm.c b/src/arm/isa-arm.c index fea797e73..89f3e0bbb 100644 --- a/src/arm/isa-arm.c +++ b/src/arm/isa-arm.c @@ -698,7 +698,7 @@ DEFINE_LOAD_STORE_T_INSTRUCTION_ARM(STRT, 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;