RISC-V: Fix disassemble for c.li, c.andi and c.addiw
authorKito Cheng <kito.cheng@gmail.com>
Wed, 5 Apr 2017 12:58:28 +0000 (20:58 +0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Thu, 4 May 2017 10:20:30 +0000 (03:20 -0700)
ChangeLog

2017-05-03  Kito Cheng  <kito.cheng@gmail.com>

        * riscv-dis.c (print_insn_args): Handle 'Co' operands.

opcodes/ChangeLog
opcodes/riscv-dis.c

index 355a162b0ec5142e3c31d14513fcf007d7efb98c..ea0902fc1d4bfc318d5271800c41cedbb007d9ea 100644 (file)
@@ -1,3 +1,7 @@
+2017-05-03  Kito Cheng  <kito.cheng@gmail.com>
+
+       * riscv-dis.c (print_insn_args): Handle 'Co' operands.
+
 2017-05-01  Michael Clark  <michaeljclark@mac.com>
 
        * riscv-opc.c (riscv_opcodes) <call>: Use RA not T1 as a temporary
index d760d701d49a43eabeae1359794e508ce842c898..bb534633102c3274f1b3a2b0fdc14370497defea 100644 (file)
@@ -153,6 +153,7 @@ print_insn_args (const char *d, insn_t l, bfd_vma pc, disassemble_info *info)
            case 'i':
              print (info->stream, "%d", (int)EXTRACT_RVC_SIMM3 (l));
              break;
+           case 'o':
            case 'j':
              print (info->stream, "%d", (int)EXTRACT_RVC_IMM (l));
              break;