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 /include | |
parent | 7bdbf233d9636a4bc73a2513b5e1a83a388626cf (diff) | |
download | qemu-d6493dbb46b4b7be13a39425b5a1e523e72f5a68.zip qemu-d6493dbb46b4b7be13a39425b5a1e523e72f5a68.tar.gz qemu-d6493dbb46b4b7be13a39425b5a1e523e72f5a68.tar.bz2 |
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 'include')
-rw-r--r-- | include/qemu/cpuid.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qemu/cpuid.h b/include/qemu/cpuid.h index 35325f1..b111615 100644 --- a/include/qemu/cpuid.h +++ b/include/qemu/cpuid.h @@ -25,6 +25,9 @@ #endif /* Leaf 1, %ecx */ +#ifndef bit_PCLMUL +#define bit_PCLMUL (1 << 1) +#endif #ifndef bit_SSE4_1 #define bit_SSE4_1 (1 << 19) #endif |