]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/common/Make-common.in
sim: nltvals: pull target syscalls out into a dedicated source file
authorMike Frysinger <vapier@gentoo.org>
Mon, 1 Nov 2021 05:31:44 +0000 (01:31 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 28 Nov 2021 18:23:57 +0000 (13:23 -0500)
commit64ae70dde5bc8916800bbdb570d6281b700f7e84
treed42650d14607f4ec69b314017afe529077ced46f
parent96537189c92734cad48c95de00d3cd167ad7092d
sim: nltvals: pull target syscalls out into a dedicated source file

Like we just did for pulling out the errno map, pull out the syscall
maps into a dedicated common file.  Most newlib ports are using the
same syscall map, but not all, which means we have to do a bit more
work to migrate.

This commit adds the maps and switches the ports using the common
default syscall table over to it.  Ports using unique syscall tables
are still using the old targ-map.c logic.

Switching common ports over is easy by checking NL_TARGET, but the
ppc code needs a bit more cleanup here hence its larger diff.
sim/Makefile.am
sim/Makefile.in
sim/README-HACKING
sim/common/Make-common.in
sim/common/gennltvals.py
sim/common/local.mk
sim/common/target-newlib-syscall.c [new file with mode: 0644]
sim/common/target-newlib-syscall.h [new file with mode: 0644]
sim/ppc/Makefile.in