From acc42d79e283a31de4037fcf75d9e8af61073b51 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 24 Apr 2014 16:01:33 -0700 Subject: [PATCH] fix disassembly of bnez and friends --- spike/disasm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spike/disasm.cc b/spike/disasm.cc index b35c49e..f63dee1 100644 --- 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) \ -- 2.30.2