Don't abort() when system call is unknown.
authorAndrew Cagney <cagney@redhat.com>
Wed, 11 Feb 1998 07:11:28 +0000 (07:11 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 11 Feb 1998 07:11:28 +0000 (07:11 +0000)
sim/d10v/ChangeLog
sim/d10v/simops.c

index f44707eee11bff40007bfb245bfe4ad237bdf074..4294cd7f421f94c9de568834ba63b663c8d539dc 100644 (file)
@@ -1,5 +1,8 @@
 Wed Feb 11 16:53:49 1998  Andrew Cagney  <cagney@b1.cygnus.com>
 
+       * 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.
index dc0750338d24d2be30d2302656fa6a1949d5662a..9263c423dc91c58e40eec1825db69035e730a429 100644 (file)
@@ -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;