projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15daa31
)
Ignore JALR's effective address LSB
author
Andrew Waterman
<waterman@cs.berkeley.edu>
Thu, 8 Aug 2013 03:13:33 +0000
(20:13 -0700)
committer
Andrew Waterman
<waterman@cs.berkeley.edu>
Thu, 8 Aug 2013 22:05:52 +0000
(15:05 -0700)
riscv/insns/jalr.h
patch
|
blob
|
history
diff --git
a/riscv/insns/jalr.h
b/riscv/insns/jalr.h
index 91be911b9556c709ff92787ed7f543c9cb8a7eee..6f17ab16209d5c62555b03185328f2765789a611 100644
(file)
--- a/
riscv/insns/jalr.h
+++ b/
riscv/insns/jalr.h
@@
-1,3
+1,3
@@
reg_t temp = RS1;
RD = npc;
-set_pc(
temp + SIMM
);
+set_pc(
(temp + SIMM) & ~1
);