disas/riscv: Remove rvcd_imm_nz
Remove rvcd_imm_nz and rv_opcode_data.decomp_data as unused. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20260812223142.349142-20-richard.henderson@linaro.org> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Richard Henderson committed
Aug 12, 2026 at 15:31 UTC
af216549cb0651404fbe7eebc9a0e377faeb57f1
2 files changed
+1
-11
disas/riscv.c
+1
-6
@@ -5417,12 +5417,7 @@ static const rv_opcode_data *decode_inst_decompress(rv_decode *dec, rv_isa isa,
5417
}
5418
5419
if (decomp_op != rv_op_illegal) {
5420
- if ((op->decomp_data & rvcd_imm_nz) && dec->imm == 0) {
5421
- dec->opcode_data = rvi_opcode_data;
5422
- dec->op = rv_op_illegal;
5423
- } else {
5424
- dec->op = decomp_op;
5425
- }
5420
+ dec->op = decomp_op;
5421
op = &dec->opcode_data[decomp_op];
5422
}
5423
return op;
disas/riscv.h
-5
@@ -186,7 +186,6 @@ typedef struct {
186
short decomp_rv32;
187
short decomp_rv64;
188
short decomp_rv128;
189
- short decomp_data;
189
} rv_opcode_data;
190
191
typedef struct {
@@ -217,10 +216,6 @@ enum {
216
rv_op_illegal = 0
217
};
218
220
-enum {
221
- rvcd_imm_nz = 0x1
222
-};
223
-
219
/* instruction formats */
220
221
#define rv_fmt_none "O\t"