sim mn10300: Fix igen generation.

Only pass the top-level instruction decode table (mn10300.igen) to
igen via -i.  The additional files passed previously caused igen to
exit its getopt loop in main and exit silently without generating any
output.  In addition, when am33-2.igen was added, it was not included
from mn10300.igen, so was never used.

sim/mn10300/ChangeLog:

	* Makefile.in: (tmp-igen) Only pass mn10300.igen to igen.
	* mn10300.igen: Include am33-2.igen.
This commit is contained in:
John Baldwin
2021-04-15 16:03:15 -07:00
parent 599a6ff01e
commit 32b14776a0
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2021-04-15 John Baldwin <jhb@FreeBSD.org>
* Makefile.in: (tmp-igen) Only pass mn10300.igen to igen.
* mn10300.igen: Include am33-2.igen.
2021-04-12 Mike Frysinger <vapier@gentoo.org> 2021-04-12 Mike Frysinger <vapier@gentoo.org>
* interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all. * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.

View File

@ -66,9 +66,10 @@ clean-igen:
rm -f tmp-igen tmp-insns rm -f tmp-igen tmp-insns
IGEN_TRACE= # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries IGEN_TRACE= # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries
IGEN_INSN=$(srcdir)/mn10300.igen $(srcdir)/am33.igen $(srcdir)/am33-2.igen IGEN_INSN=$(srcdir)/mn10300.igen
IGEN_INSN_INC=$(srcdir)/am33.igen $(srcdir)/am33-2.igen
IGEN_DC=$(srcdir)/mn10300.dc IGEN_DC=$(srcdir)/mn10300.dc
tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen tmp-igen: $(IGEN_INSN) $(IGEN_INSN_INC) $(IGEN_DC) ../igen/igen
$(IGEN) \ $(IGEN) \
$(IGEN_TRACE) \ $(IGEN_TRACE) \
-G gen-direct-access \ -G gen-direct-access \

View File

@ -4590,4 +4590,5 @@
:include::am33:am33.igen :include::am33:am33.igen
:include::am33-2:am33-2.igen