From 1ea07ef7c5e7f6cee815bb77c8be8487b6598889 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 6 Feb 2014 14:03:07 -0800 Subject: [PATCH] Fix disassembly of JAL --- spike/disasm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2