aboutsummaryrefslogtreecommitdiff
path: root/sim/frv/local.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-01-01 21:18:50 -0500
committerMike Frysinger <vapier@gentoo.org>2023-01-02 20:29:52 -0500
commitcd313814aa7b2cba1c9b5c948ead1ddb205bc2c2 (patch)
treec22e14d7c1ee335ebb46bf2f0cc36494dc93c33a /sim/frv/local.mk
parent3298ee7a2c3421426729da5b3ccc25c13f623780 (diff)
downloadgdb-cd313814aa7b2cba1c9b5c948ead1ddb205bc2c2.zip
gdb-cd313814aa7b2cba1c9b5c948ead1ddb205bc2c2.tar.gz
gdb-cd313814aa7b2cba1c9b5c948ead1ddb205bc2c2.tar.bz2
sim: frv: hoist cgen rules to top-level
Diffstat (limited to 'sim/frv/local.mk')
-rw-r--r--sim/frv/local.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/sim/frv/local.mk b/sim/frv/local.mk
index 0dd1e3d..d5fdd1d 100644
--- a/sim/frv/local.mk
+++ b/sim/frv/local.mk
@@ -47,3 +47,14 @@ SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
$(AM_V_at)touch $@
MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)
+
+## Target that triggers all cgen targets that works when --disable-cgen-maint.
+%D%/cgen: %D%/cgen-arch %D%/cgen-cpu-decode
+
+%D%/cgen-arch:
+ $(AM_V_GEN)mach=all FLAGS="with-scache"; $(CGEN_GEN_ARCH)
+%D%/arch.h %D%/arch.c %D%/cpuall.h: @CGEN_MAINT@ %D%/cgen-arch
+
+%D%/cgen-cpu-decode:
+ $(AM_V_GEN)cpu=frvbf mach=frv,fr550,fr500,fr450,fr400,tomcat,simple FLAGS="with-scache with-profile=fn with-generic-write with-parallel-only" EXTRAFILES="$(CGEN_CPU_SEM)"; $(CGEN_GEN_CPU_DECODE)
+%D%/cpu.h %D%/sem.c %D%/model.c %D%/decode.c %D%/decode.h: @CGEN_MAINT@ %D%/cgen-cpu-decode