Patchwork [1/4] Allow target helpers to be in any *_helper.c file

mail settings
Submitter Peter Maydell
Date April 4, 2011, 10:46 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/89608/
State New
Headers show


Peter Maydell - April 4, 2011, 10:46 a.m.
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 <>
--- |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/ b/
index 04e20dd..45acdba 100644
--- a/
+++ b/
@@ -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.