2 * QEMU RISC-V Disassembler for xventana.
4 * SPDX-License-Identifier: GPL-2.0-or-later
7 #include "disas/riscv.h"
8 #include "disas/riscv-xventana.h"
11 /* 0 is reserved for rv_op_illegal. */
12 ventana_op_vt_maskc
= 1,
13 ventana_op_vt_maskcn
= 2,
16 const rv_opcode_data ventana_opcode_data
[] = {
17 { "vt.illegal", rv_codec_illegal
, rv_fmt_none
, NULL
, 0, 0, 0 },
18 { "vt.maskc", rv_codec_r
, rv_fmt_rd_rs1_rs2
, NULL
, 0, 0, 0 },
19 { "vt.maskcn", rv_codec_r
, rv_fmt_rd_rs1_rs2
, NULL
, 0, 0, 0 },
22 void decode_xventanacondops(rv_decode
*dec
, rv_isa isa
)
24 rv_inst inst
= dec
->inst
;
25 rv_opcode op
= rv_op_illegal
;
27 switch (((inst
>> 0) & 0b11)) {
29 switch (((inst
>> 2) & 0b11111)) {
31 switch (((inst
>> 22) & 0b1111111000) | ((inst
>> 12) & 0b0000000111)) {
32 case 6: op
= ventana_op_vt_maskc
; break;
33 case 7: op
= ventana_op_vt_maskcn
; break;