aboutsummaryrefslogtreecommitdiff
path: root/sim/lm32
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/lm32
parentAutomatic date update in version.in (diff)
downloadbinutils-gdb-09d4e6bb2fe97ea03e881405c5e8960cd5fd3263.tar.gz
binutils-gdb-09d4e6bb2fe97ea03e881405c5e8960cd5fd3263.tar.bz2
binutils-gdb-09d4e6bb2fe97ea03e881405c5e8960cd5fd3263.zip
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/lm32')
-rw-r--r--sim/lm32/local.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/sim/lm32/local.mk b/sim/lm32/local.mk
index 917e6bb42ea..11c6b10ff0c 100644
--- a/sim/lm32/local.mk
+++ b/sim/lm32/local.mk
@@ -72,11 +72,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 lm32bf \
- -infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/
+ -cpu lm32bf
$(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 $@