Avoid use of TARGET_<syscall> defines and rely on the callback layers
to resolve these dynamically so we can support multiple syscall layers
instead of assuming the newlib/libgloss numbers all the time.
#define WANT_CPU_FRVBF
#include "sim-main.h"
-#include "targ-vals.h"
#include "cgen-engine.h"
#include "cgen-par.h"
#include "sim-fpu.h"
s.arg2 = GET_H_GR (9);
s.arg3 = GET_H_GR (10);
- if (s.func == TARGET_SYS_exit)
+ if (cb_target_to_host_syscall (cb, s.func) == CB_SYS_exit)
{
sim_engine_halt (sd, current_cpu, NULL, pc, sim_exited, s.arg1);
}