From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1853) id 2B36E3858D39; Thu, 9 May 2024 15:02:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2B36E3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1715266967; bh=DGkW8o+vx++oc1A4BK/XU58T0twEGSPn6m7GKJ5eBqM=; h=From:To:Subject:Date:From; b=wS+CPS/tclSobelcC3rSKDTN/dzNT33zpcamHAbHX365bWgnG2QQ0u40pycuOHciq AGfL9lSEw6gXebrQeX2JaVbR3WwBSe4MvCKH5J/x7Xj2Vn9ov3qqGhc3AnSwJiMTOL n+Ft2ZKTCJJiXiKVfC+crr71Z3K/p/VdLP/umd+Y= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Bernd Edlinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: riscv: Fix build issue due to recent binutils commit X-Act-Checkin: binutils-gdb X-Git-Author: Bernd Edlinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 5021daf303393722f58f4422d7ad53d526aa2d50 X-Git-Newrev: b75187cd9480a35f402bb6c384299bf89091bd7b Message-Id: <20240509150247.2B36E3858D39@sourceware.org> Date: Thu, 9 May 2024 15:02:47 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Db75187cd9480= a35f402bb6c384299bf89091bd7b commit b75187cd9480a35f402bb6c384299bf89091bd7b Author: Bernd Edlinger Date: Thu May 9 07:58:08 2024 +0200 sim: riscv: Fix build issue due to recent binutils commit =20 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. =20 Fix that by using the new INSN_CLASS types. =20 Fixes: c144f6383379 ("RISC-V: Support B, Zaamo and Zalrsc extensions.") =20 Approved-By: Tom Tromey Diff: --- 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 st= ruct riscv_opcode *op) =20 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. */