sim: iq2000: add fallback for exit syscall

Make sure this syscall always exits regardless of the exit code.
This commit is contained in:
Mike Frysinger
2023-12-21 01:32:59 -05:00
parent cc6aaa3149
commit 4935610a57
+3
View 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: