mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
disas/riscv: Add support for XVentanaCondOps
This patch adds XVentanaCondOps support to the RISC-V disassembler. Co-developed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com> Acked-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Message-Id: <20230612111034.3955227-8-christoph.muellner@vrull.eu> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
c859a2424d
commit
f6f72338d8
4 changed files with 67 additions and 1 deletions
|
@ -22,6 +22,9 @@
|
|||
#include "target/riscv/cpu_cfg.h"
|
||||
#include "disas/riscv.h"
|
||||
|
||||
/* Vendor extensions */
|
||||
#include "disas/riscv-xventana.h"
|
||||
|
||||
typedef enum {
|
||||
/* 0 is reserved for rv_op_illegal. */
|
||||
rv_op_lui = 1,
|
||||
|
@ -4708,6 +4711,7 @@ disasm_inst(char *buf, size_t buflen, rv_isa isa, uint64_t pc, rv_inst inst,
|
|||
void (*decode_func)(rv_decode *, rv_isa);
|
||||
} decoders[] = {
|
||||
{ always_true_p, rvi_opcode_data, decode_inst_opcode },
|
||||
{ has_XVentanaCondOps_p, ventana_opcode_data, decode_xventanacondops },
|
||||
};
|
||||
|
||||
for (size_t i = 0; i < ARRAY_SIZE(decoders); i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue