Ignore JALR's effective address LSB
authorAndrew Waterman <waterman@cs.berkeley.edu>
Thu, 8 Aug 2013 03:13:33 +0000 (20:13 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Thu, 8 Aug 2013 22:05:52 +0000 (15:05 -0700)
riscv/insns/jalr.h

index 91be911b9556c709ff92787ed7f543c9cb8a7eee..6f17ab16209d5c62555b03185328f2765789a611 100644 (file)
@@ -1,3 +1,3 @@
 reg_t temp = RS1;
 RD = npc;
-set_pc(temp + SIMM);
+set_pc((temp + SIMM) & ~1);