sim: ppc: move spreg.[ch] files to the source tree
authorMike Frysinger <vapier@gentoo.org>
Wed, 9 Nov 2022 19:52:45 +0000 (02:52 +0700)
committerMike Frysinger <vapier@gentoo.org>
Wed, 21 Dec 2022 02:05:43 +0000 (21:05 -0500)
commitee3314c43609e4bc1628f1b757a9f4b101e7ab6a
tree2df8caae31add11f924a7cae95437895a60e970f
parent0d90ae96c5668fcd1c1499bdf6e03d105d8650b2
sim: ppc: move spreg.[ch] files to the source tree

Simplify the build by moving the generation of these files from
build-time (via dgen.c that we have to compile & execute on the
build system) to maintainer/release mode (via spreg-gen.py that
we only ever execute when the spreg table actually changes).  It
speeds up the build process and makes it easier for us to reason
about & review changes to the code generator.

The tool is renamed from "dgen" because it's hardcoded to only
generated spreg files.  It isn't a generalized tool for creating
lookup tables.
sim/Makefile.in
sim/ppc/local.mk
sim/ppc/spreg-gen.py [new file with mode: 0755]
sim/ppc/spreg.c [new file with mode: 0644]
sim/ppc/spreg.h [new file with mode: 0644]