mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
a802d5c456
commit
33614fa310
1 changed files with 12 additions and 6 deletions
18
meson.build
18
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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue