aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-02-03 12:28:59 -0800
committerRichard Henderson <richard.henderson@linaro.org>2025-02-08 12:40:24 -0800
commit33614fa3105c3b348d512e0ec466c82bf322e45c (patch)
treeb0c26f0e30465928e60e92562c069b338d4ca653
parenta802d5c456f55d94fae1833b042a4b574b53dd38 (diff)
downloadqemu-33614fa3105c3b348d512e0ec466c82bf322e45c.zip
qemu-33614fa3105c3b348d512e0ec466c82bf322e45c.tar.gz
qemu-33614fa3105c3b348d512e0ec466c82bf322e45c.tar.bz2
meson: Disallow 64-bit on 32-bit KVM emulation
Require a 64-bit host binary to spawn a 64-bit guest. Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--meson.build18
1 files changed, 12 insertions, 6 deletions
diff --git a/meson.build b/meson.build
index e50a103..1af8aeb 100644
--- a/meson.build
+++ b/meson.build
@@ -277,21 +277,27 @@ else
host_arch = cpu
endif
-if cpu in ['x86', 'x86_64']
+if cpu == 'x86'
+ kvm_targets = ['i386-softmmu']
+elif cpu == 'x86_64'
kvm_targets = ['i386-softmmu', 'x86_64-softmmu']
elif cpu == 'aarch64'
kvm_targets = ['aarch64-softmmu']
elif cpu == 's390x'
kvm_targets = ['s390x-softmmu']
-elif cpu in ['ppc', 'ppc64']
+elif cpu == 'ppc'
+ kvm_targets = ['ppc-softmmu']
+elif cpu == 'ppc64'
kvm_targets = ['ppc-softmmu', 'ppc64-softmmu']
-elif cpu in ['mips', 'mips64']
+elif cpu == 'mips'
+ kvm_targets = ['mips-softmmu', 'mipsel-softmmu']
+elif cpu == 'mips64'
kvm_targets = ['mips-softmmu', 'mipsel-softmmu', 'mips64-softmmu', 'mips64el-softmmu']
-elif cpu in ['riscv32']
+elif cpu == 'riscv32'
kvm_targets = ['riscv32-softmmu']
-elif cpu in ['riscv64']
+elif cpu == 'riscv64'
kvm_targets = ['riscv64-softmmu']
-elif cpu in ['loongarch64']
+elif cpu == 'loongarch64'
kvm_targets = ['loongarch64-softmmu']
else
kvm_targets = []