From: Bernd Edlinger Date: Thu, 9 May 2024 05:58:08 +0000 (+0200) Subject: sim: riscv: Fix build issue due to recent binutils commit X-Git-Tag: gdb-15-branchpoint~143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b75187cd9480a35f402bb6c384299bf89091bd7b;p=thirdparty%2Fbinutils-gdb.git 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 --- 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. */