mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:56:38 +00:00
meson: Remove cpu == x86 tests
The 32-bit x86 host is no longer supported. Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
16
configure
vendored
16
configure
vendored
@@ -447,13 +447,6 @@ case "$cpu" in
|
||||
linux_arch=arm64
|
||||
;;
|
||||
|
||||
i386|i486|i586|i686)
|
||||
cpu="i386"
|
||||
host_arch=i386
|
||||
linux_arch=x86
|
||||
CPU_CFLAGS="-m32"
|
||||
;;
|
||||
|
||||
loongarch*)
|
||||
cpu=loongarch64
|
||||
host_arch=loongarch64
|
||||
@@ -1944,14 +1937,7 @@ if test "$skip_meson" = no; then
|
||||
if test "$cross_compile" = "yes"; then
|
||||
echo "[host_machine]" >> $cross
|
||||
echo "system = '$host_os'" >> $cross
|
||||
case "$cpu" in
|
||||
i386)
|
||||
echo "cpu_family = 'x86'" >> $cross
|
||||
;;
|
||||
*)
|
||||
echo "cpu_family = '$cpu'" >> $cross
|
||||
;;
|
||||
esac
|
||||
echo "cpu_family = '$cpu'" >> $cross
|
||||
echo "cpu = '$cpu'" >> $cross
|
||||
if test "$bigendian" = "yes" ; then
|
||||
echo "endian = 'big'" >> $cross
|
||||
|
||||
49
meson.build
49
meson.build
@@ -50,7 +50,7 @@ qapi_trace_events = []
|
||||
|
||||
bsd_oses = ['gnu/kfreebsd', 'freebsd', 'netbsd', 'openbsd', 'dragonfly', 'darwin']
|
||||
supported_oses = ['windows', 'freebsd', 'netbsd', 'openbsd', 'darwin', 'sunos', 'linux', 'emscripten']
|
||||
supported_cpus = ['ppc', 'ppc64', 's390x', 'riscv32', 'riscv64', 'x86', 'x86_64',
|
||||
supported_cpus = ['ppc', 'ppc64', 's390x', 'riscv32', 'riscv64', 'x86_64',
|
||||
'aarch64', 'loongarch64', 'mips64', 'sparc64', 'wasm64']
|
||||
|
||||
cpu = host_machine.cpu_family()
|
||||
@@ -265,8 +265,6 @@ enable_modules = get_option('modules') \
|
||||
|
||||
if cpu not in supported_cpus
|
||||
host_arch = 'unknown'
|
||||
elif cpu == 'x86'
|
||||
host_arch = 'i386'
|
||||
elif cpu == 'mips64'
|
||||
host_arch = 'mips'
|
||||
elif cpu in ['riscv32', 'riscv64']
|
||||
@@ -275,9 +273,7 @@ else
|
||||
host_arch = cpu
|
||||
endif
|
||||
|
||||
if cpu == 'x86'
|
||||
kvm_targets = ['i386-softmmu']
|
||||
elif cpu == 'x86_64'
|
||||
if cpu == 'x86_64'
|
||||
kvm_targets = ['i386-softmmu', 'x86_64-softmmu']
|
||||
elif cpu == 'aarch64'
|
||||
kvm_targets = ['aarch64-softmmu']
|
||||
@@ -300,9 +296,7 @@ else
|
||||
endif
|
||||
accelerator_targets = { 'CONFIG_KVM': kvm_targets }
|
||||
|
||||
if cpu == 'x86'
|
||||
xen_targets = ['i386-softmmu']
|
||||
elif cpu == 'x86_64'
|
||||
if cpu == 'x86_64'
|
||||
xen_targets = ['i386-softmmu', 'x86_64-softmmu']
|
||||
elif cpu == 'aarch64'
|
||||
# i386 emulator provides xenpv machine type for multiple architectures
|
||||
@@ -391,40 +385,17 @@ endif
|
||||
|
||||
qemu_isa_flags = []
|
||||
|
||||
# __sync_fetch_and_and requires at least -march=i486. Many toolchains
|
||||
# use i686 as default anyway, but for those that don't, an explicit
|
||||
# specification is necessary
|
||||
if host_arch == 'i386' and not cc.links('''
|
||||
static int sfaa(int *ptr)
|
||||
{
|
||||
return __sync_fetch_and_and(ptr, 0);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int val = 42;
|
||||
val = __sync_val_compare_and_swap(&val, 0, 1);
|
||||
sfaa(&val);
|
||||
return val;
|
||||
}''')
|
||||
qemu_isa_flags += ['-march=i486']
|
||||
endif
|
||||
|
||||
# Pick x86-64 baseline version
|
||||
if host_arch in ['i386', 'x86_64']
|
||||
if get_option('x86_version') == '0' and host_arch == 'x86_64'
|
||||
if host_arch == 'x86_64'
|
||||
if get_option('x86_version') == '0'
|
||||
error('x86_64-v1 required for x86-64 hosts')
|
||||
endif
|
||||
|
||||
# add flags for individual instruction set extensions
|
||||
if get_option('x86_version') >= '1'
|
||||
if host_arch == 'i386'
|
||||
qemu_common_flags = ['-mfpmath=sse'] + qemu_common_flags
|
||||
else
|
||||
# present on basically all processors but technically not part of
|
||||
# x86-64-v1, so only include -mneeded for x86-64 version 2 and above
|
||||
qemu_isa_flags += ['-mcx16']
|
||||
endif
|
||||
# present on basically all processors but technically not part of
|
||||
# x86-64-v1, so only include -mneeded for x86-64 version 2 and above
|
||||
qemu_isa_flags += ['-mcx16']
|
||||
endif
|
||||
if get_option('x86_version') >= '2'
|
||||
qemu_isa_flags += ['-mpopcnt']
|
||||
@@ -1040,7 +1011,7 @@ have_xen_pci_passthrough = get_option('xen_pci_passthrough') \
|
||||
error_message: 'Xen PCI passthrough requested but Xen not enabled') \
|
||||
.require(host_os == 'linux',
|
||||
error_message: 'Xen PCI passthrough not available on this platform') \
|
||||
.require(cpu == 'x86' or cpu == 'x86_64',
|
||||
.require(cpu == 'x86_64',
|
||||
error_message: 'Xen PCI passthrough not available on this platform') \
|
||||
.allowed()
|
||||
|
||||
@@ -4564,7 +4535,7 @@ if have_tools
|
||||
libcap_ng, mpathpersist],
|
||||
install: true)
|
||||
|
||||
if cpu in ['x86', 'x86_64']
|
||||
if cpu == 'x86_64'
|
||||
executable('qemu-vmsr-helper', files('tools/i386/qemu-vmsr-helper.c'),
|
||||
dependencies: [authz, crypto, io, qom, qemuutil,
|
||||
libcap_ng, mpathpersist],
|
||||
|
||||
Reference in New Issue
Block a user