chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base/dispatch.c: Fix feature probe for AESNI.
[catacomb]
/
base
/
dispatch.c
diff --git
a/base/dispatch.c
b/base/dispatch.c
index 50c842e1da3764934762c1074a7e76a37a59f1bf..309be5c3969b63c8ae83a92a06a74d14f8a92fe8 100644
(file)
--- a/
base/dispatch.c
+++ b/
base/dispatch.c
@@
-520,7
+520,7
@@
int cpu_feature_p(int feat)
cpuid_feature_p(CPUID_1_D, CPUID1D_SSE2) &&
xmm_registers_available_p());
CASE_CPUFEAT(X86_AESNI, "x86:aesni",
cpuid_feature_p(CPUID_1_D, CPUID1D_SSE2) &&
xmm_registers_available_p());
CASE_CPUFEAT(X86_AESNI, "x86:aesni",
- cpuid_feature_p(CPUID_1_
D
, CPUID1C_AESNI) &&
+ cpuid_feature_p(CPUID_1_
C
, CPUID1C_AESNI) &&
xmm_registers_available_p());
CASE_CPUFEAT(X86_RDRAND, "x86:rdrand",
cpuid_feature_p(CPUID_1_C, CPUID1C_RDRAND) &&
xmm_registers_available_p());
CASE_CPUFEAT(X86_RDRAND, "x86:rdrand",
cpuid_feature_p(CPUID_1_C, CPUID1C_RDRAND) &&