sim: iq2000/lm32/m32c/moxie/rx: switch to new target-newlib-syscall.h

Use the new target-newlib-syscall.h to provide the target syscall
defines.  These code paths are written specifically for the newlib
ABI rather than being generalized, so switching them to the defines
rather than trying to go through the dynamic callback conversion
seems like the best trade-off for now.  Might have to reconsider
this in the future.
This commit is contained in:
Mike Frysinger
2021-11-28 00:18:18 -05:00
parent 64ae70dde5
commit e38330f8b0
5 changed files with 35 additions and 35 deletions

View File

@@ -28,7 +28,7 @@
#include "sim-signal.h"
#include "sim-syscall.h"
#include "lm32-sim.h"
#include "targ-vals.h"
#include "target-newlib-syscall.h"
/* Handle invalid instructions. */
@@ -133,7 +133,7 @@ lm32bf_scall_insn (SIM_CPU * current_cpu, IADDR pc)
host_callback *cb = STATE_CALLBACK (sd);
if ((STATE_ENVIRONMENT (sd) != OPERATING_ENVIRONMENT)
|| (GET_H_GR (8) == TARGET_SYS_exit))
|| (GET_H_GR (8) == TARGET_NEWLIB_SYS_exit))
{
/* Delegate system call to host O/S. */
long result, result2;