From 4935610a577445aef20643a226bca7e6bd11fcb4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Dec 2023 01:32:59 -0500 Subject: [PATCH] sim: iq2000: add fallback for exit syscall Make sure this syscall always exits regardless of the exit code. --- sim/iq2000/iq2000.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sim/iq2000/iq2000.c b/sim/iq2000/iq2000.c index 087646b59b0..f35e91e83ba 100644 --- a/sim/iq2000/iq2000.c +++ b/sim/iq2000/iq2000.c @@ -77,6 +77,9 @@ do_syscall (SIM_CPU *current_cpu, PCADDR pc) /* Fail. */ puts ("fail"); exit (1); + default: + puts ("unknown exit"); + exit (2); } case TARGET_NEWLIB_SYS_write: -- 2.47.3