ALU instructions can write to PC
Jeffrey Pfau jeffrey@endrift.com
Sun, 07 Apr 2013 02:01:14 -0700
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
src/arm.c
→
src/arm.c
@@ -207,7 +207,10 @@ int rn = (opcode >> 16) & 0xF; \
SHIFTER(cpu, opcode); \ BODY; \ S_BODY; \ - POST_BODY;) + POST_BODY; \ + if (rd == ARM_PC) { \ + ARM_WRITE_PC; \ + }) #define DEFINE_ALU_INSTRUCTION_ARM(NAME, S_BODY, BODY, POST_BODY) \ DEFINE_ALU_INSTRUCTION_EX_ARM(NAME, , _barrelShift, BODY, POST_BODY) \