sim: Don't overwrite stored errno in sim_syscall_multi
[deliverable/binutils-gdb.git] / sim / common / sim-syscall.c
index 7923160cb7f645883aebe3515b59d4d60bb93cdf..34d2f0ec115c3d5daca5c27e0fa3a6762c62c7d5 100644 (file)
@@ -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.02302 seconds and 4 git commands to generate.