diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-07-11 21:39:10 +0100 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-09-15 13:57:00 +0000 |
| commit | d6493dbb46b4b7be13a39425b5a1e523e72f5a68 (patch) | |
| tree | db479fc17d939ada4560d3e9509fd53878d7b84f /util | |
| parent | 7bdbf233d9636a4bc73a2513b5e1a83a388626cf (diff) | |
| download | focaccia-qemu-d6493dbb46b4b7be13a39425b5a1e523e72f5a68.tar.gz focaccia-qemu-d6493dbb46b4b7be13a39425b5a1e523e72f5a68.zip | |
host/include/i386: Implement clmul.h
Detect PCLMUL in cpuinfo; implement the accel hook. Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
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 b2ed65bb10..9fddb18303 100644 --- a/util/cpuinfo-i386.c +++ b/util/cpuinfo-i386.c @@ -39,6 +39,7 @@ unsigned __attribute__((constructor)) cpuinfo_init(void) info |= (c & bit_SSE4_1 ? CPUINFO_SSE4 : 0); info |= (c & bit_MOVBE ? CPUINFO_MOVBE : 0); 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); |