binutils-gdb/sim/common
Mike Frysinger a7e40a9931 sim: nltvals: pull target errno out into a dedicated source file
The current system maintains a list of target errno constants in the
nltvals.def file, then runs a build-time tool to turn that into a C
file.  This list of errno values is the same for all arches, so we
don't need the arch-specific flexibility.  Further, these are only
for newlib/libgloss environments, which makes it confusing to support
other userland runtimes (like Linux).  Let's simplify to make this
easier to understand & build.  We don't namespace the variables yet,
but sets up the framework for it.

Create a new target-newlib-errno.c template file.  The template file
is hand written, but the inline map is still automatically generated.

This allows us to move it to the common set of objects so it's only
built once in a multi-target build.

Now we can remove the output from the gentmap build-time tool since
it's checked into the tree.

Then we stop including the errno lists in nltvals.def since nothing
uses it.
2021-10-31 04:31:28 -04:00
..
callback.c sim: callback: add check for HAVE_KILL 2021-06-29 20:12:57 -04:00
cgen-accfp.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
cgen-cpu.h
cgen-defs.h sim: namespace sim_machs 2021-06-30 01:52:51 -04:00
cgen-engine.h
cgen-fpu.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
cgen-fpu.h
cgen-mem.h sim: cgen: always leverage the mem prototypes 2021-06-27 10:44:22 -04:00
cgen-ops.h sim: cgen: always leverage the ops prototypes 2021-06-27 10:42:51 -04:00
cgen-par.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
cgen-par.h
cgen-run.c sim: cgen: add asserts to fix unused engine warnings 2021-06-27 10:48:07 -04:00
cgen-scache.c sim: move scache init to dynamic modules.c 2021-06-30 12:41:53 -04:00
cgen-scache.h sim: unify scache settings 2021-06-30 13:33:18 -04:00
cgen-sim.h
cgen-trace.c sim: cgen: suppress trace non-literal printf warning 2021-06-27 10:49:38 -04:00
cgen-trace.h sim: cgen: add printf attributes in a few more calls 2021-06-27 10:46:27 -04:00
cgen-types.h sim: cgen: workaround Windows VOID define 2021-09-09 01:28:58 -04:00
cgen-utils.c sim: namespace sim_machs 2021-06-30 01:52:51 -04:00
cgen.sh
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
create-version.sh
defs.h sim: drop arch-specific config.h 2021-06-16 00:22:53 -04:00
dv-cfi.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dv-cfi.h
dv-core.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dv-glue.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dv-pal.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
dv-sockser.c sim: drop old O_NDELAY & FNBLOCK support 2021-09-09 02:24:00 -04:00
dv-sockser.h
gdbinit.in
genmloop.sh sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
gennltvals.py sim: nltvals: pull target errno out into a dedicated source file 2021-10-31 04:31:28 -04:00
gentmap.c sim: nltvals: pull target errno out into a dedicated source file 2021-10-31 04:31:28 -04:00
hw-alloc.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
hw-alloc.h
hw-base.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
hw-base.h
hw-device.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
hw-device.h
hw-events.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
hw-events.h
hw-handles.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
hw-handles.h
hw-instances.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
hw-instances.h
hw-main.h
hw-ports.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
hw-ports.h
hw-properties.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
hw-properties.h
hw-tree.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
hw-tree.h
local.mk sim: nltvals: pull target errno out into a dedicated source file 2021-10-31 04:31:28 -04:00
Make-common.in sim: nltvals: pull target errno out into a dedicated source file 2021-10-31 04:31:28 -04:00
nltvals.def sim: nltvals: pull target errno out into a dedicated source file 2021-10-31 04:31:28 -04:00
nrun.c sim: split sim-signal.h include out 2021-06-18 00:50:14 -04:00
portability.c sim: start unifying portability shims 2021-06-12 23:51:35 -04:00
portability.h sim: start unifying portability shims 2021-06-12 23:51:35 -04:00
run.1
sim-abort.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-alu.h
sim-arange.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-arange.h
sim-assert.h
sim-base.h sim: move default model to the runtime sim state 2021-06-30 02:57:45 -04:00
sim-basics.h sim: split sim-signal.h include out 2021-06-18 00:50:14 -04:00
sim-bits.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-bits.h
sim-close.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-command.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-config.c sim: overhaul & unify endian settings management 2021-06-17 23:20:13 -04:00
sim-config.h sim: delete unused model settings 2021-06-30 03:00:26 -04:00
sim-core.c sim: split sim-signal.h include out 2021-06-18 00:50:14 -04:00
sim-core.h
sim-cpu.c sim: namespace sim_machs 2021-06-30 01:52:51 -04:00
sim-cpu.h
sim-endian.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-endian.h sim: split sim/callback.h include out 2021-06-17 00:11:48 -04:00
sim-engine.c sim: move engine init to dynamic modules.c 2021-06-30 12:28:28 -04:00
sim-engine.h sim: move engine init to dynamic modules.c 2021-06-30 12:28:28 -04:00
sim-events.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-events.h
sim-fpu.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-fpu.h
sim-hload.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-hrw.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-hw.c sim: split sim/callback.h include out 2021-06-17 00:11:48 -04:00
sim-hw.h
sim-info.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-inline.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-inline.h sim: move UNUSED before TYPE in SIM_ENDIAN_INLINE's definition 2021-06-19 22:49:52 -04:00
sim-io.c sim: drop old O_NDELAY & FNBLOCK support 2021-09-09 02:24:00 -04:00
sim-io.h sim: io: add printf attributes to vprintf funcs too 2021-06-29 02:20:28 -04:00
sim-load.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-memopt.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-memopt.h
sim-model.c sim: move default model to the runtime sim state 2021-06-30 02:57:45 -04:00
sim-model.h sim: move default model to the runtime sim state 2021-06-30 02:57:45 -04:00
sim-module.c sim: move scache init to dynamic modules.c 2021-06-30 12:41:53 -04:00
sim-module.h
sim-n-bits.h
sim-n-core.h
sim-n-endian.h
sim-options.c sim: add --info-target for listing supported BFD targets 2021-10-04 02:19:58 -04:00
sim-options.h
sim-profile.c sim: unify scache settings 2021-06-30 13:33:18 -04:00
sim-profile.h sim: move profile init to dynamic modules.c 2021-06-30 12:38:39 -04:00
sim-reason.c sim: split sim-signal.h include out 2021-06-18 00:50:14 -04:00
sim-reg.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-resume.c sim: split sim-signal.h include out 2021-06-18 00:50:14 -04:00
sim-run.c sim: switch config.h usage to defs.h 2021-05-16 22:38:41 -04:00
sim-signal.c sim: split sim-signal.h include out 2021-06-18 00:50:14 -04:00
sim-signal.h
sim-stop.c sim: split sim-signal.h include out 2021-06-18 00:50:14 -04:00
sim-syscall.c sim: syscall: handle killing the sim itself 2021-06-23 20:11:45 -04:00
sim-syscall.h sim: split sim/callback.h include out 2021-06-17 00:11:48 -04:00
sim-trace.c sim: move trace init to dynamic modules.c 2021-06-30 12:34:01 -04:00
sim-trace.h sim: move trace init to dynamic modules.c 2021-06-30 12:34:01 -04:00
sim-types.h
sim-utils.c sim: fix compilation on mingw64 [PR sim/28476] 2021-10-30 23:50:09 -04:00
sim-utils.h sim: callback: drop unused printf helpers 2021-06-29 02:00:29 -04:00
sim-watch.c sim: split sim-signal.h include out 2021-06-18 00:50:14 -04:00
sim-watch.h
syscall.c sim: callback: add a kill interface 2021-06-23 20:05:14 -04:00
target-newlib-errno.c sim: nltvals: pull target errno out into a dedicated source file 2021-10-31 04:31:28 -04:00
version.h