fix disassembly of bnez and friends
authorAndrew Waterman <waterman@eecs.berkeley.edu>
Thu, 24 Apr 2014 23:01:33 +0000 (16:01 -0700)
committerAndrew Waterman <waterman@eecs.berkeley.edu>
Thu, 24 Apr 2014 23:01:33 +0000 (16:01 -0700)
spike/disasm.cc

index b35c49e6cd993945948244c9a7edbfceaea10ab6..f63dee1b7cd88fe2fc63ffc858f3520ac19650f0 100644 (file)
@@ -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) \