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:
2cd631a
)
Fix disassembly of JAL
author
Andrew Waterman
<waterman@eecs.berkeley.edu>
Thu, 6 Feb 2014 22:03:07 +0000
(14:03 -0800)
committer
Andrew Waterman
<waterman@eecs.berkeley.edu>
Thu, 6 Feb 2014 22:03:27 +0000
(14:03 -0800)
spike/disasm.cc
patch
|
blob
|
history
diff --git
a/spike/disasm.cc
b/spike/disasm.cc
index e4e731508a3ed05f8b4a4eea38ed67390a23c6c0..547b10b8c4ce75413d7b2711f84e45e5c35af887 100644
(file)
--- a/
spike/disasm.cc
+++ b/
spike/disasm.cc
@@
-126,7
+126,7
@@
struct : public arg_t {
struct : public arg_t {
std::string to_string(insn_t insn) const {
std::stringstream s;
- int32_t target = insn.
sb
_imm();
+ int32_t target = insn.
uj
_imm();
char sign = target >= 0 ? '+' : '-';
s << "pc " << sign << std::hex << " 0x" << abs(target);
return s.str();