aboutsummaryrefslogtreecommitdiff
path: root/sim/or1k
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-19 19:54:13 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-20 21:24:40 -0500
commit09d4e6bb2fe97ea03e881405c5e8960cd5fd3263 (patch)
treeb7dca9fd90e7ce5805925b7a6224178151fb5e72 /sim/or1k
parent515603a73285cc714f7a82e6b486c5d57634c10f (diff)
downloadgdb-09d4e6bb2fe97ea03e881405c5e8960cd5fd3263.zip
gdb-09d4e6bb2fe97ea03e881405c5e8960cd5fd3263.tar.gz
gdb-09d4e6bb2fe97ea03e881405c5e8960cd5fd3263.tar.bz2
sim: cgen: unify the genmloop logic a bit
Pull out the common parts of the genmloop invocation into the common code. This will make it easier to add more, and make the per-port differences a little more obvious.
Diffstat (limited to 'sim/or1k')
-rw-r--r--sim/or1k/local.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/sim/or1k/local.mk b/sim/or1k/local.mk
index cb48f82..979e0e3 100644
--- a/sim/or1k/local.mk
+++ b/sim/or1k/local.mk
@@ -74,11 +74,10 @@ BUILT_SOURCES += %D%/eng.h
## FIXME: Use of `mono' is wip.
%D%/mloop.c %D%/eng.h: %D%/stamp-mloop ; @true
-%D%/stamp-mloop: $(srccom)/genmloop.sh %D%/mloop.in
- $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
+%D%/stamp-mloop: %D%/mloop.in $(srccom)/genmloop.sh
+ $(AM_V_GEN)$(CGEN_GEN_MLOOP) \
-mono -fast -pbb -switch sem-switch.c \
- -cpu or1k32bf \
- -infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/
+ -cpu or1k32bf
$(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng.hin %D%/eng.h
$(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop.cin %D%/mloop.c
$(AM_V_at)touch $@