mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-07-23 19:34:41 +00:00
meson: assume x86-64-v2 baseline ISA
x86-64-v2 processors were released in 2008, assume that we have one. Unfortunately there is no GCC flag to enable all the features without disabling what came after; so enable them one by one. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
72baef13b9
commit
294ac64e45
10
meson.build
10
meson.build
|
@ -336,9 +336,13 @@ if host_arch == 'i386' and not cc.links('''
|
||||||
qemu_common_flags = ['-march=i486'] + qemu_common_flags
|
qemu_common_flags = ['-march=i486'] + qemu_common_flags
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ??? Only extremely old AMD cpus do not have cmpxchg16b.
|
# Assume x86-64-v2 (minus CMPXCHG16B for 32-bit code)
|
||||||
# If we truly care, we should simply detect this case at
|
if host_arch == 'i386'
|
||||||
# runtime and generate the fallback to serial emulation.
|
qemu_common_flags = ['-mfpmath=sse'] + qemu_common_flags
|
||||||
|
endif
|
||||||
|
if host_arch in ['i386', 'x86_64']
|
||||||
|
qemu_common_flags = ['-mpopcnt', '-msse4.2'] + qemu_common_flags
|
||||||
|
endif
|
||||||
if host_arch == 'x86_64'
|
if host_arch == 'x86_64'
|
||||||
qemu_common_flags = ['-mcx16'] + qemu_common_flags
|
qemu_common_flags = ['-mcx16'] + qemu_common_flags
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue