[sim] fixed jalr immediate bug
authorAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>
Fri, 15 Apr 2011 22:33:39 +0000 (15:33 -0700)
committerAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>
Fri, 15 Apr 2011 22:33:39 +0000 (15:33 -0700)
riscv/insns/jalr_c.h

index ab8ed455daf202c1368f341d23a50095e078c33a..536ebbf72e180a1db8960eda79957433d9f1055b 100644 (file)
@@ -1,3 +1,3 @@
-reg_t temp = npc + SIMM;
-npc = RS1;
+reg_t temp = npc;
+npc = RS1 + SIMM;
 RD = temp;