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:
e23899e
)
fix disassembly of bnez and friends
author
Andrew Waterman
<waterman@eecs.berkeley.edu>
Thu, 24 Apr 2014 23:01:33 +0000
(16:01 -0700)
committer
Andrew Waterman
<waterman@eecs.berkeley.edu>
Thu, 24 Apr 2014 23:01:33 +0000
(16:01 -0700)
spike/disasm.cc
patch
|
blob
|
history
diff --git
a/spike/disasm.cc
b/spike/disasm.cc
index b35c49e6cd993945948244c9a7edbfceaea10ab6..f63dee1b7cd88fe2fc63ffc858f3520ac19650f0 100644
(file)
--- a/
spike/disasm.cc
+++ b/
spike/disasm.cc
@@
-145,7
+145,7
@@
disassembler_t::disassembler_t()
const uint32_t match_rd_ra = 1UL << 7;
const uint32_t mask_rs1 = 0x1fUL << 15;
const uint32_t match_rs1_ra = 1UL << 15;
- const uint32_t mask_rs2 = 0x1fUL <<
15
;
+ const uint32_t mask_rs2 = 0x1fUL <<
20
;
const uint32_t mask_imm = 0xfffUL << 20;
#define DECLARE_INSN(code, match, mask) \