aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-05-31 10:22:33 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-06-05 11:01:05 +0200
commit433cd6d94a8256af70a5200f236dc8047c3c1468 (patch)
treeb59045d2633207bab6b7afa142d9bb24f4779d46 /util
parentb18236897ca15c3db1506d8edb9a191dfe51429c (diff)
downloadqemu-433cd6d94a8256af70a5200f236dc8047c3c1468.zip
qemu-433cd6d94a8256af70a5200f236dc8047c3c1468.tar.gz
qemu-433cd6d94a8256af70a5200f236dc8047c3c1468.tar.bz2
host/i386: assume presence of SSSE3
QEMU now requires an x86-64-v2 host, which has SSSE3 instructions (notably, PSHUFB which is used by QEMU's AES implementation). Do not bother checking it. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/cpuinfo-i386.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cpuinfo-i386.c b/util/cpuinfo-i386.c
index ca74ef0..6d474a6 100644
--- a/util/cpuinfo-i386.c
+++ b/util/cpuinfo-i386.c
@@ -38,8 +38,8 @@ unsigned __attribute__((constructor)) cpuinfo_init(void)
info |= (c & bit_POPCNT ? CPUINFO_POPCNT : 0);
info |= (c & bit_PCLMUL ? CPUINFO_PCLMUL : 0);
- /* Our AES support requires PSHUFB as well. */
- info |= ((c & bit_AES) && (c & bit_SSSE3) ? CPUINFO_AES : 0);
+ /* NOTE: our AES support requires SSSE3 (PSHUFB) as well. */
+ info |= (c & bit_AES) ? CPUINFO_AES : 0;
/* For AVX features, we must check available and usable. */
if ((c & bit_AVX) && (c & bit_OSXSAVE)) {