LDM should force-align loads

This commit is contained in:
Jeffrey Pfau 2013-07-31 01:58:40 -07:00
parent 3301cc9f97
commit 6b86cdf9ef
1 changed files with 1 additions and 1 deletions

View File

@ -698,7 +698,7 @@ DEFINE_LOAD_STORE_T_INSTRUCTION_ARM(STRT,
ARM_STORE_POST_BODY;) ARM_STORE_POST_BODY;)
DEFINE_LOAD_STORE_MULTIPLE_INSTRUCTION_ARM(LDM, 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; ++currentCycles;
if (rs & 0x8000) { if (rs & 0x8000) {
ARM_WRITE_PC; ARM_WRITE_PC;