]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: riscv: Fix build issue due to INSN_CLASS_C was changed to INSN_CLASS_ZCA
authorNelson Chu <nelson@rivosinc.com>
Thu, 10 Jul 2025 13:50:19 +0000 (21:50 +0800)
committerNelson Chu <nelson@rivosinc.com>
Thu, 10 Jul 2025 13:50:19 +0000 (21:50 +0800)
sim/riscv/sim-main.c

index 4c949c46ac7da7f05f9edbcf7196dc426b0f6fea..172c593f754ddd7046068dac0b1a80c266e18b68 100644 (file)
@@ -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);