From: Peter Maydell Date: Mon, 4 Apr 2011 10:46:32 +0000 (+0100) Subject: Makefile.target: Allow target helpers to be in any *_helper.c file X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=348883d4828d7434e1053407818598f7fb15e594;p=qemu.git Makefile.target: Allow target helpers to be in any *_helper.c file 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 Signed-off-by: Aurelien Jarno --- diff --git a/Makefile.target b/Makefile.target index 2f7671454c..d5761b72f5 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.