From: Andrew Waterman Date: Thu, 6 Feb 2014 22:03:07 +0000 (-0800) Subject: Fix disassembly of JAL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ea07ef7c5e7f6cee815bb77c8be8487b6598889;p=riscv-isa-sim.git Fix disassembly of JAL --- diff --git a/spike/disasm.cc b/spike/disasm.cc index e4e7315..547b10b 100644 --- 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();