[PATCH] sim: riscv: Fix build fail since INSN_CLASS_A was removed.

Nelson Chu nelson@rivosinc.com
Thu May 9 00:54:02 GMT 2024


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)



More information about the Binutils mailing list