f7abc1ca0c
(LIB_OBJS): Add syscall.o. (gentmap): Pass $(NL_TARGET) to $(CC). (syscall.o): Add rule for. (sim_main_headers): Add $(SIM_EXTRA_DEPS). (sim-bits.o): Depend on $(sim-n-bits_h). (sim-load.o): Depend on callback.h. * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to cgen-mem.h, sem-ops.h renamed to cgen-ops.h. * cgen-mem.h, cgen-ops.h: New files. * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no". * Makefile.in (nltvals.def): Depend on gennltvals.sh. Rewrite build rule. * callback.c: #include string.h or strings.h. #include sys/types.h and sys/stat.h. (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare. (enosys): New function. (os_get_errno,os_open): Update. (os_stat,os_fstat): New functions. (os_init): Initialize syscall_map, errno_map, open_map. (default_callback): Add entries for os_stat, os_fstat, syscall_map, errno_map, open_map, signal_map, stat_map. (cb_read_target_syscall_maps): New function. (cb_target_to_host_syscall): New function. (cb_host_to_target_errno): Renamed from host_to_target_errno. (cb_target_to_host_open): Renamed from target_to_host_open. (store): New function. (cb_host_to_target_stat): New function. * gentmap.c (sys_tdefs): New global. (gen_targ_vals_h): Output target syscall numbers. (gen_targ_map_c): Update. Output target syscall translation map. * gentvals.sh: New first argument `target'. Preface table with #ifdef NL_TARGET_$target if non-null target passed. * gennltvals.sh: New file. * nltvals.def: Regenerated. |
||
---|---|---|
.. | ||
.Sanitize | ||
aclocal.m4 | ||
callback.c | ||
cgen-mem.h | ||
cgen-scache.c | ||
cgen-scache.h | ||
cgen-sim.h | ||
cgen-trace.c | ||
cgen-types.h | ||
cgen-utils.c | ||
ChangeLog | ||
config.in | ||
configure | ||
configure.in | ||
gdbinit.in | ||
genmloop.sh | ||
gentmap.c | ||
gentvals.sh | ||
Make-common.in | ||
Makefile.in | ||
nrun.c | ||
run.1 | ||
run.c | ||
sim-abort.c | ||
sim-alu.h | ||
sim-assert.h | ||
sim-base.h | ||
sim-basics.h | ||
sim-bits.c | ||
sim-bits.h | ||
sim-break.c | ||
sim-break.h | ||
sim-config.c | ||
sim-config.h | ||
sim-core.c | ||
sim-core.h | ||
sim-endian.c | ||
sim-endian.h | ||
sim-engine.c | ||
sim-engine.h | ||
sim-events.c | ||
sim-events.h | ||
sim-fpu.c | ||
sim-fpu.h | ||
sim-hload.c | ||
sim-hrw.c | ||
sim-inline.c | ||
sim-inline.h | ||
sim-io.c | ||
sim-io.h | ||
sim-load.c | ||
sim-memopt.c | ||
sim-memopt.h | ||
sim-module.c | ||
sim-n-bits.h | ||
sim-n-core.h | ||
sim-n-endian.h | ||
sim-options.c | ||
sim-options.h | ||
sim-profile.c | ||
sim-resume.c | ||
sim-run.c | ||
sim-stop.c | ||
sim-trace.c | ||
sim-trace.h | ||
sim-types.h | ||
sim-utils.c | ||
sim-utils.h | ||
sim-watch.c | ||
sim-watch.h | ||
sim-xcat.h | ||
syscall.c | ||
tconfig.in |