[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/45] meson: assume x86-64-v2 baseline ISA
From: |
Paolo Bonzini |
Subject: |
[PULL 03/45] meson: assume x86-64-v2 baseline ISA |
Date: |
Tue, 4 Jun 2024 08:43:27 +0200 |
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>
---
meson.build | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
index 63866071445..d80203f1cde 100644
--- a/meson.build
+++ b/meson.build
@@ -336,9 +336,13 @@ if host_arch == 'i386' and not cc.links('''
qemu_common_flags = ['-march=i486'] + qemu_common_flags
endif
-# ??? Only extremely old AMD cpus do not have cmpxchg16b.
-# If we truly care, we should simply detect this case at
-# runtime and generate the fallback to serial emulation.
+# Assume x86-64-v2 (minus CMPXCHG16B for 32-bit code)
+if host_arch == 'i386'
+ 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'
qemu_common_flags = ['-mcx16'] + qemu_common_flags
endif
--
2.45.1
- [PULL 00/45] mostly i386 patches for 2024-06-04, Paolo Bonzini, 2024/06/04
- [PULL 02/45] host/i386: nothing looks at CPUINFO_SSE4, Paolo Bonzini, 2024/06/04
- [PULL 01/45] virtio-blk: remove SCSI passthrough functionality, Paolo Bonzini, 2024/06/04
- [PULL 03/45] meson: assume x86-64-v2 baseline ISA,
Paolo Bonzini <=
- [PULL 05/45] host/i386: assume presence of SSE2, Paolo Bonzini, 2024/06/04
- [PULL 04/45] host/i386: assume presence of CMOV, Paolo Bonzini, 2024/06/04
- [PULL 06/45] host/i386: assume presence of SSSE3, Paolo Bonzini, 2024/06/04
- [PULL 08/45] target/i386: fix SSE and SSE2 feature check, Paolo Bonzini, 2024/06/04
- [PULL 07/45] host/i386: assume presence of POPCNT, Paolo Bonzini, 2024/06/04
- [PULL 09/45] target/i386: fix memory opsize for Mov to/from Seg, Paolo Bonzini, 2024/06/04
- [PULL 10/45] target/i386/tcg: Fix RDPID feature check, Paolo Bonzini, 2024/06/04
- [PULL 12/45] update-linux-headers: fix forwarding to asm-generic headers, Paolo Bonzini, 2024/06/04
- [PULL 11/45] target/i386: fix xsave.flat from kvm-unit-tests, Paolo Bonzini, 2024/06/04
- [PULL 13/45] update-linux-headers: move pvpanic.h to correct directory, Paolo Bonzini, 2024/06/04