From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id BDB9A3858C2F for ; Mon, 2 Jan 2023 04:32:20 +0000 (GMT) Received: by smtp.gentoo.org (Postfix, from userid 559) id 6CD11340CA7; Mon, 2 Jan 2023 04:32:20 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 4/9] sim: frv: hoist cgen rules to top-level Date: Sun, 1 Jan 2023 23:32:04 -0500 Message-Id: <20230102043209.21542-4-vapier@gentoo.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230102043209.21542-1-vapier@gentoo.org> References: <20230102043209.21542-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --- sim/Makefile.in | 8 ++++++++ sim/frv/Makefile.in | 24 ------------------------ sim/frv/local.mk | 8 ++++++++ 3 files changed, 16 insertions(+), 24 deletions(-) diff --git a/sim/frv/Makefile.in b/sim/frv/Makefile.in index 6aaf1064c122..a13765589da9 100644 --- a/sim/frv/Makefile.in +++ b/sim/frv/Makefile.in @@ -31,33 +31,9 @@ SIM_OBJS = \ SIM_EXTRA_CFLAGS = @SIM_FRV_TRAPDUMP_FLAGS@ -SIM_EXTRA_CLEAN = frv-clean - # Some modules don't build cleanly yet. memory.o sem.o: SIM_WERROR_CFLAGS = ## COMMON_POST_CONFIG_FRAG arch = frv - -frv-clean: - rm -f tmp-* - rm -f stamp-arch stamp-cpu - -stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(srcdir)/../../cpu/frv.cpu - $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \ - archfile=$(srcdir)/../../cpu/frv.cpu \ - FLAGS="with-scache" - $(SILENCE) touch $@ -arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch -# @true - -stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(srcdir)/../../cpu/frv.cpu - $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \ - cpu=frvbf mach=frv,fr550,fr500,fr450,fr400,tomcat,simple SUFFIX= \ - archfile=$(srcdir)/../../cpu/frv.cpu \ - FLAGS="with-scache with-profile=fn with-generic-write with-parallel-only" \ - EXTRAFILES="$(CGEN_CPU_SEM)" - $(SILENCE) touch $@ -cpu.h sem.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu -# @true diff --git a/sim/frv/local.mk b/sim/frv/local.mk index 0dd1e3d4ee16..838d97cf5862 100644 --- a/sim/frv/local.mk +++ b/sim/frv/local.mk @@ -47,3 +47,11 @@ SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS) $(AM_V_at)touch $@ MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS) + +%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 -- 2.39.0