From b41dff6b54bc5c79a6435beb8c877839c631831d Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 11 Feb 1998 07:11:28 +0000 Subject: [PATCH] Don't abort() when system call is unknown. --- sim/d10v/ChangeLog | 3 +++ sim/d10v/simops.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog index f44707eee11..4294cd7f421 100644 --- a/sim/d10v/ChangeLog +++ b/sim/d10v/ChangeLog @@ -1,5 +1,8 @@ Wed Feb 11 16:53:49 1998 Andrew Cagney + * simops.c (OP_5F00): Call error instead of abort for unknown + syscalls. + * d10v_sim.h (enum): Define DPSW_CR. * simops.c (move_to_cr): Mask out hardwired zero bits in DPSW. diff --git a/sim/d10v/simops.c b/sim/d10v/simops.c index dc0750338d2..9263c423dc9 100644 --- a/sim/d10v/simops.c +++ b/sim/d10v/simops.c @@ -3029,7 +3029,7 @@ OP_5F00 () #endif default: - abort (); + d10v_callback->error (d10v_callback, "Unknown syscall %d", FUNC); } RETERR = (RETVAL == (uint16) -1) ? d10v_callback->get_errno(d10v_callback) : 0; break; -- 2.30.2