[committed] sim: riscv: Fix build issue due to INSN_CLASS_C was changed to INSN_CLASS_ZCA

Nelson Chu nelson@rivosinc.com
Thu Jul 10 13:53:18 GMT 2025


---
 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.39.5 (Apple Git-154)



More information about the Binutils mailing list