RISC-V: Set insn info fields correctly when disassembling.
authorJim Wilson <jimw@sifive.com>
Mon, 30 Jul 2018 20:55:41 +0000 (13:55 -0700)
committerJim Wilson <jimw@sifive.com>
Mon, 30 Jul 2018 20:55:41 +0000 (13:55 -0700)
commiteb41b24898e9858852c98f9275e7a4adee860d7b
tree67d79ae29e20d2f353e58a370ec84499b3d9e9f4
parentc8f2dc0dc967222673d71a0493958a587c53ae3c
RISC-V: Set insn info fields correctly when disassembling.

include/
* opcode/riscv.h (INSN_TYPE, INSN_BRANCH, INSN_CONDBRANCH, INSN_JSR)
(INSN_DREF, INSN_DATA_SIZE, INSN_DATA_SIZE_SHIFT, INSN_1_BYTE)
(INSN_2_BYTE, INSN_4_BYTE, INSN_8_BYTE, INSN_16_BYTE): New.

opcodes/
* riscv-dis.c (riscv_disassemble_insn): Set insn_type and data_size
fields.
* riscv-opc.c (riscv_opcodes): Use new INSN_* flags to annotate insns.
include/ChangeLog
include/opcode/riscv.h
opcodes/ChangeLog
opcodes/riscv-dis.c
opcodes/riscv-opc.c