* [PATCH] sim: riscv: Fix build issue due to recent binutils commit
@ 2024-05-09 8:58 Bernd Edlinger
2024-05-09 14:12 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Edlinger @ 2024-05-09 8:58 UTC (permalink / raw)
To: gdb-patches
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.")
---
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 d556e6f5bdd..8234a79d924 100644
--- a/sim/riscv/sim-main.c
+++ b/sim/riscv/sim-main.c
@@ -1386,7 +1386,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:
/* Check whether model with A extension is selected. */
if (riscv_cpu->csr.misa & 1)
return execute_a (cpu, iw, op);
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sim: riscv: Fix build issue due to recent binutils commit
2024-05-09 8:58 [PATCH] sim: riscv: Fix build issue due to recent binutils commit Bernd Edlinger
@ 2024-05-09 14:12 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2024-05-09 14:12 UTC (permalink / raw)
To: Bernd Edlinger; +Cc: gdb-patches
>>>>> "Bernd" == Bernd Edlinger <bernd.edlinger@hotmail.de> writes:
Bernd> The commit c144f6383379 removed INSN_CLASS_A and
Bernd> added INSN_CLASS_ZAAMO and INSN_CLASS_ZALRSC instead,
Bernd> which broke the build of the sim for riscv targets.
Thanks for the patch. I approved an identical one that showed up a bit
earlier in my mailbox.
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-09 14:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-09 8:58 [PATCH] sim: riscv: Fix build issue due to recent binutils commit Bernd Edlinger
2024-05-09 14:12 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).