/* Simulator system call support.
- Copyright 2002-2015 Free Software Foundation, Inc.
+ Copyright 2002-2021 Free Software Foundation, Inc.
This file is part of simulators.
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;