From b75187cd9480a35f402bb6c384299bf89091bd7b Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Thu, 9 May 2024 07:58:08 +0200 Subject: [PATCH] sim: riscv: Fix build issue due to recent binutils commit The commit c144f6383379 removed INSN_CLASS_A and added INSN_CLASS_ZAAMO and INSN_CLASS_ZALRSC instead, which broke the build of the sim for riscv targets. Fix that by using the new INSN_CLASS types. Fixes: c144f6383379 ("RISC-V: Support B, Zaamo and Zalrsc extensions.") Approved-By: Tom Tromey --- sim/riscv/sim-main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sim/riscv/sim-main.c b/sim/riscv/sim-main.c index 41973d9dd06..378e6f1dc69 100644 --- a/sim/riscv/sim-main.c +++ b/sim/riscv/sim-main.c @@ -1299,7 +1299,8 @@ execute_one (SIM_CPU *cpu, unsigned_word iw, const struct riscv_opcode *op) switch (op->insn_class) { - case INSN_CLASS_A: + case INSN_CLASS_ZAAMO: + case INSN_CLASS_ZALRSC: return execute_a (cpu, iw, op); case INSN_CLASS_C: /* Check whether model with C extension is selected. */