]> git.proxmox.com Git - mirror_qemu.git/commitdiff
meson: Move CONFIG_TCG_INTERPRETER to config_host
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 17 Oct 2022 06:11:53 +0000 (16:11 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 5 Jan 2023 00:20:01 +0000 (16:20 -0800)
Like CONFIG_TCG, the enabled method of execution is a host property
not a guest property.  This exposes the define to compile-once files.

Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
meson.build

index 4c6f8a674a51cedf0891cd387adb1d8d227898a6..14e3eba22736c357b9debd23567a46e3c60e44d5 100644 (file)
@@ -469,6 +469,7 @@ if get_option('tcg').allowed()
   endif
   if get_option('tcg_interpreter')
     tcg_arch = 'tci'
+    config_host += { 'CONFIG_TCG_INTERPRETER': 'y' }
   elif host_arch == 'x86_64'
     tcg_arch = 'i386'
   elif host_arch == 'ppc64'
@@ -2545,9 +2546,6 @@ foreach target : target_dirs
     if sym == 'CONFIG_TCG' or target in accelerator_targets.get(sym, [])
       config_target += { sym: 'y' }
       config_all += { sym: 'y' }
-      if sym == 'CONFIG_TCG' and tcg_arch == 'tci'
-        config_target += { 'CONFIG_TCG_INTERPRETER': 'y' }
-      endif
       if target in modular_tcg
         config_target += { 'CONFIG_TCG_MODULAR': 'y' }
       else