Browse Source

sim: iq2000: add fallback for exit syscall

Make sure this syscall always exits regardless of the exit code.
binutils-2_42-branch
Mike Frysinger 2 years ago
parent
commit
4935610a57
  1. 3
      sim/iq2000/iq2000.c

3
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:

Loading…
Cancel
Save