diff mbox series

[3/7] tcg/module: move cpu-exec-common.c from tcg_ss to specific_ss

Message ID 20210804143826.3402872-4-kraxel@redhat.com
State New
Headers show
Series tcg: some small towards more modular tcg | expand

Commit Message

Gerd Hoffmann Aug. 4, 2021, 2:38 p.m. UTC
That will build cpu-exec-common.c into core qemu.
Moves tcg_allowed variable and some small glue functions.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 accel/tcg/meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/accel/tcg/meson.build b/accel/tcg/meson.build
index d4df7681a811..c1ee9dcaed1f 100644
--- a/accel/tcg/meson.build
+++ b/accel/tcg/meson.build
@@ -1,7 +1,10 @@ 
+specific_ss.add(when: 'CONFIG_TCG', if_true: files(
+  'cpu-exec-common.c',
+))
+
 tcg_ss = ss.source_set()
 tcg_ss.add(files(
   'tcg-all.c',
-  'cpu-exec-common.c',
   'cpu-exec.c',
   'tcg-runtime-gvec.c',
   'tcg-runtime.c',