public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: riscv: Fix build fail since INSN_CLASS_A was removed.
@ 2024-05-09  0:54 Nelson Chu
  2024-05-09 14:11 ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: Nelson Chu @ 2024-05-09  0:54 UTC (permalink / raw)
  To: gdb-patches, tom, aburgess, vapier; +Cc: binutils, Nelson Chu

Updated INSN_CLASS_A to INSN_CLASS_ZAAMO and INSN_CLASS_ZALRSC since the
former was removed and sepearted into the latter two by the commit,
c144f638337944101131d9fe6de4ab908f6d4c2d

sim/
	* riscv/sim-main.c (execute_one): Updated INSN_CLASS_A to
	INSN_CLASS_ZAAMO and INSN_CLASS_ZALRSC since the former
	was removed and sepearted into the latter two.
---
 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.  */
-- 
2.39.3 (Apple Git-146)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-09 15:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-09  0:54 [PATCH] sim: riscv: Fix build fail since INSN_CLASS_A was removed Nelson Chu
2024-05-09 14:11 ` Tom Tromey
2024-05-09 14:25   ` Nelson Chu
2024-05-09 14:26     ` Tom Tromey
2024-05-09 15:06       ` Bernd Edlinger

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).