From a6a177d0a200db9feb84aaa23c4fac02df172b61 Mon Sep 17 00:00:00 2001 From: Nelson Chu Date: Thu, 10 Jul 2025 21:50:19 +0800 Subject: [PATCH] sim: riscv: Fix build issue due to INSN_CLASS_C was changed to INSN_CLASS_ZCA --- sim/riscv/sim-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/riscv/sim-main.c b/sim/riscv/sim-main.c index 4c949c46ac7..172c593f754 100644 --- a/sim/riscv/sim-main.c +++ b/sim/riscv/sim-main.c @@ -1302,7 +1302,7 @@ execute_one (SIM_CPU *cpu, unsigned_word iw, const struct riscv_opcode *op) case INSN_CLASS_ZAAMO: case INSN_CLASS_ZALRSC: return execute_a (cpu, iw, op); - case INSN_CLASS_C: + case INSN_CLASS_ZCA: /* Check whether model with C extension is selected. */ if (riscv_cpu->csr.misa & 4) return execute_c (cpu, iw, op); -- 2.47.2