diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-06-18 17:34:48 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-06-28 14:44:51 +0200 |
commit | 87b8bde55dc1700f212b2249b9c150714df67369 (patch) | |
tree | ddb1f04ccb61517cb0f7ef3fe9990878d8ee8e3b /util | |
parent | 39a367a42a3e77f56e9cc01d098298167df3fcc3 (diff) | |
download | qemu-87b8bde55dc1700f212b2249b9c150714df67369.zip qemu-87b8bde55dc1700f212b2249b9c150714df67369.tar.gz qemu-87b8bde55dc1700f212b2249b9c150714df67369.tar.bz2 |
Revert "host/i386: assume presence of SSE2"
This reverts commit b18236897ca15c3db1506d8edb9a191dfe51429c.
The x86-64 instruction set can now be tuned down to x86-64 v1
or i386 Pentium Pro.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/cpuinfo-i386.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/cpuinfo-i386.c b/util/cpuinfo-i386.c index ca74ef0..90f92a4 100644 --- a/util/cpuinfo-i386.c +++ b/util/cpuinfo-i386.c @@ -34,6 +34,7 @@ unsigned __attribute__((constructor)) cpuinfo_init(void) if (max >= 1) { __cpuid(1, a, b, c, d); + info |= (d & bit_SSE2 ? CPUINFO_SSE2 : 0); info |= (c & bit_MOVBE ? CPUINFO_MOVBE : 0); info |= (c & bit_POPCNT ? CPUINFO_POPCNT : 0); info |= (c & bit_PCLMUL ? CPUINFO_PCLMUL : 0); |