From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43509 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6hJ2-0005QU-HK for qemu-devel@nongnu.org; Mon, 04 Apr 2011 06:46:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6hJ0-00007s-Fh for qemu-devel@nongnu.org; Mon, 04 Apr 2011 06:46:47 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:56698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6hJ0-0008Vq-84 for qemu-devel@nongnu.org; Mon, 04 Apr 2011 06:46:46 -0400 From: Peter Maydell Date: Mon, 4 Apr 2011 11:46:32 +0100 Message-Id: <1301913995-2506-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1301913995-2506-1-git-send-email-peter.maydell@linaro.org> References: <1301913995-2506-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 1/4] Makefile.target: Allow target helpers to be in any *_helper.c file List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Aurelien Jarno Build all files matching *_helper.c with HELPER_CFLAGS, not just op_helper.c. This allows you to put target helper functions which use the global 'env' variable in multiple source files. This only affects the ARM target as all the other targets currently only have op_helper.c. Signed-off-by: Peter Maydell --- Makefile.target | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index 04e20dd..45acdba 100644 --- a/Makefile.target +++ b/Makefile.target @@ -94,7 +94,7 @@ tcg/tcg.o: cpu.h # HELPER_CFLAGS is used for all the code compiled with static register # variables -op_helper.o cpu-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS) +%_helper.o cpu-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS) # Note: this is a workaround. The real fix is to avoid compiling # cpu_signal_handler() in cpu-exec.c. -- 1.7.1