]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: iq2000: add fallback for exit syscall
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:32:59 +0000 (01:32 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:42:34 +0000 (01:42 -0500)
Make sure this syscall always exits regardless of the exit code.

sim/iq2000/iq2000.c

index 087646b59b00b8ccad8894282c10a8ea25e56a5d..f35e91e83baec7d6aefd2e8bd47386e454f973fb 100644 (file)
@@ -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: