]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: ppc: unify igen line number output modules
authorMike Frysinger <vapier@gentoo.org>
Wed, 3 Jan 2024 07:54:37 +0000 (02:54 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 3 Jan 2024 08:32:08 +0000 (03:32 -0500)
commit7811c75893c4078d9b81f05d1642d7833c0ca400
treebb4cfc4d09b17d21e1615a6285d9404973899930
parent339e44f8c0bcd4c9d8cf10faddff61fbb39cb201
sim: ppc: unify igen line number output modules

The common igen code was forked from the ppc long ago.  The lf module
is still pretty similar in API, so we can unfork them with a little
bit of effort.

Some of the generated ppc code is now slightly different, but that's
because of fixes the common igen code has gained, but not the ppc igen
code (e.g. fixing of #line numbers).

The ppc code retains lf_print__c_code because the common igen code
rewrote the logic to a new table.c API.  Let's delay that in the ppc
code to at least unfork all this code.
13 files changed:
sim/Makefile.in
sim/ppc/gen-icache.c
sim/ppc/gen-idecode.c
sim/ppc/gen-model.c
sim/ppc/gen-semantics.c
sim/ppc/gen-support.c
sim/ppc/igen.c
sim/ppc/lf-ppc.c [new file with mode: 0644]
sim/ppc/lf-ppc.h [new file with mode: 0644]
sim/ppc/lf.c [deleted file]
sim/ppc/lf.h [deleted file]
sim/ppc/local.mk
sim/ppc/table.c