Fix LDMIA/STMIA
Jeffrey Pfau jeffrey@endrift.com
Sat, 20 Apr 2013 18:03:59 -0700
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
src/arm/isa-thumb.c
→
src/arm/isa-thumb.c
@@ -319,10 +319,10 @@ DEFINE_LOAD_STORE_WITH_REGISTER_THUMB(STR2, ARM_STUB)
DEFINE_LOAD_STORE_WITH_REGISTER_THUMB(STRB2, ARM_STUB) DEFINE_LOAD_STORE_WITH_REGISTER_THUMB(STRH2, ARM_STUB) -#define DEFINE_LOAD_STORE_MULTIPLE_EX_THUMB(NAME, RS, ADDRESS, LOOP, BODY, OP, PRE_BODY, POST_BODY, WRITEBACK) \ +#define DEFINE_LOAD_STORE_MULTIPLE_EX_THUMB(NAME, RN, ADDRESS, LOOP, BODY, OP, PRE_BODY, POST_BODY, WRITEBACK) \ DEFINE_INSTRUCTION_THUMB(NAME, \ - int rn = (opcode >> 8) & 0x000F; \ - int rs = RS; \ + int rn = RN; \ + int rs = opcode & 0xFF; \ int32_t address = ADDRESS; \ int m; \ int i; \