From: Mike Frysinger Date: Thu, 21 Dec 2023 06:32:59 +0000 (-0500) Subject: sim: iq2000: add fallback for exit syscall X-Git-Tag: binutils-2_42~466 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4935610a577445aef20643a226bca7e6bd11fcb4;p=thirdparty%2Fbinutils-gdb.git sim: iq2000: add fallback for exit syscall Make sure this syscall always exits regardless of the exit code. --- 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: