mbox series

[RFC,0/4] Support multiple deocde path for RISC-V

Message ID 20220824130331.21315-1-zhiwei_liu@linux.alibaba.com
Headers show
Series Support multiple deocde path for RISC-V | expand

Message

LIU Zhiwei Aug. 24, 2022, 1:03 p.m. UTC
The patch set add support for disassembling XVentanaCondOps instructions.
And we can also extend it to disassemble the other custom extensions.

The target_info field in struct disassemble_info is intended to be used
by targets in any way they deem suitable. We encode the custom extension
in this field and decode the custom instructions according to this information.

LIU Zhiwei (4):
  target/riscv: Use xl instead of mxl for disassemble
  disas/riscv: Move down the struct rv_decode
  disas/riscv: Add used_opcode_data field
  target/riscv: Support Ventana disassemble

 disas/riscv.c         | 103 +++++++++++++++++++++++++++++++++---------
 target/riscv/cpu.c    |  22 ++++++++-
 target/riscv/custom.h |  25 ++++++++++
 3 files changed, 127 insertions(+), 23 deletions(-)
 create mode 100644 target/riscv/custom.h