forked from Imagelibrary/binutils-gdb
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user