* cris/cris-sim.h (enum cris_unknown_syscall_action_type)
authorHans-Peter Nilsson <hp@axis.com>
Mon, 2 Oct 2006 03:21:28 +0000 (03:21 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 2 Oct 2006 03:21:28 +0000 (03:21 +0000)
commit466b1d33082997a5a2f267897b435364cde0131c
tree73899397915659fc9f158b4ae45d0d6c52810a58
parent1654a6f72803b321cfe3d7ac28ea1abed5d26fd9
* cris/cris-sim.h (enum cris_unknown_syscall_action_type)
(cris_unknown_syscall_action): Declare.
* cris/sim-if.c (cris_unknown_syscall_action): Define.
(cris_options): Add cris-unknown-syscall option.
(cris_option_handler): Correct comment about and error message for
invalid --cris-cycles argument.  Handle --cris-unknown-syscall.
* cris/traps.c: Include stdarg.h
(cris_unknown_syscall): New function.
(cris_break_13_handler): Instead of sim_io_eprintf and
sim_engine_halt, call cris_unknown_syscall to handle more or less
unknown syscalls.  Adjust code as necessary to handle return
value.
sim/ChangeLog
sim/cris/cris-sim.h
sim/cris/sim-if.c
sim/cris/traps.c