Makefile.target: Allow target helpers to be in any *_helper.c file
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Apr 2011 10:46:32 +0000 (11:46 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 4 Apr 2011 18:18:06 +0000 (20:18 +0200)
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 <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Makefile.target

index 2f7671454c16a9871220c180da77b489d056bb97..d5761b72f55514f9852c0987ce2521eaa6d94c6c 100644 (file)
@@ -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.