aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-06-01 23:58:52 -0700
committerRichard Henderson <richard.henderson@linaro.org>2023-07-08 07:30:17 +0100
commitd6a2443696c5b34fb20879e899bf823d6168b068 (patch)
treecbb20eedf46dec9d97f710e1c796bf0982ed0a7d /util
parent28e91474ce558bca55c800e7977bab7c66a44abb (diff)
downloadqemu-d6a2443696c5b34fb20879e899bf823d6168b068.zip
qemu-d6a2443696c5b34fb20879e899bf823d6168b068.tar.gz
qemu-d6a2443696c5b34fb20879e899bf823d6168b068.tar.bz2
host/include/i386: Implement aes-round.h
Detect AES in cpuinfo; implement the accel hooks. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'util')
-rw-r--r--util/cpuinfo-i386.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/cpuinfo-i386.c b/util/cpuinfo-i386.c
index ab6143d..3a7b7e0 100644
--- a/util/cpuinfo-i386.c
+++ b/util/cpuinfo-i386.c
@@ -40,6 +40,9 @@ unsigned __attribute__((constructor)) cpuinfo_init(void)
info |= (c & bit_MOVBE ? CPUINFO_MOVBE : 0);
info |= (c & bit_POPCNT ? CPUINFO_POPCNT : 0);
+ /* Our AES support requires PSHUFB as well. */
+ info |= ((c & bit_AES) && (c & bit_SSSE3) ? CPUINFO_AES : 0);
+
/* For AVX features, we must check available and usable. */
if ((c & bit_AVX) && (c & bit_OSXSAVE)) {
unsigned bv = xgetbv_low(0);