sim: options: fix --help output
[deliverable/binutils-gdb.git] / sim / common / sim-syscall.c
index ff5e5d2ed359cba688088e554a229fb928fd7abd..e91453d5ba1f2058e6e4a80b358e429f1fe93de3 100644 (file)
@@ -1,6 +1,6 @@
 /* Simulator system call support.
 
-   Copyright 2002-2015 Free Software Foundation, Inc.
+   Copyright 2002-2021 Free Software Foundation, Inc.
 
    This file is part of simulators.
 
@@ -97,11 +97,6 @@ sim_syscall_multi (SIM_CPU *cpu, int func, long arg1, long arg2, long arg3,
 
   if (cb_target_to_host_syscall (cb, func) == CB_SYS_exit)
     sim_engine_halt (sd, cpu, NULL, sim_pc_get (cpu), sim_exited, arg1);
-  else if (sc.result == -1)
-    {
-      cb->last_errno = errno;
-      sc.errcode = cb->get_errno (cb);
-    }
 
   *result = sc.result;
   *result2 = sc.result2;
This page took 0.023777 seconds and 4 git commands to generate.