meson: Disallow 64-bit on 32-bit HVF/NVMM/WHPX emulation
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 4 Feb 2025 16:20:42 +0000 (08:20 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 8 Feb 2025 20:41:22 +0000 (12:41 -0800)
Require a 64-bit host binary to spawn a 64-bit guest.

For HVF this is trivially true because macOS 11 dropped
support for 32-bit applications entirely.

For NVMM, NetBSD only enables nvmm on x86_64:
  http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/nvmm/Makefile?rev=1.1.6.2;content-type=text%2Fplain

For WHPX, we have already dropped support for 32-bit Windows.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
meson.build

index 911955cfa85be4494e39d404353aa56202b0bd2a..85317cd63f7c26b06c67997da5f3ef34272364d4 100644 (file)
@@ -319,13 +319,11 @@ else
 endif
 accelerator_targets += { 'CONFIG_XEN': xen_targets }
 
-if cpu in ['aarch64']
+if cpu == 'aarch64'
   accelerator_targets += {
     'CONFIG_HVF': ['aarch64-softmmu']
   }
-endif
-
-if cpu in ['x86', 'x86_64']
+elif cpu == 'x86_64'
   accelerator_targets += {
     'CONFIG_HVF': ['x86_64-softmmu'],
     'CONFIG_NVMM': ['i386-softmmu', 'x86_64-softmmu'],