about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-12-03 15:02:44 -0800
committerH.J. Lu <hjl.tools@gmail.com>2020-12-04 05:03:42 -0800
commit2976082a385a7fb3d0294c6acf745b4f93e834ee (patch)
tree84102630085ffc980ed3324ad41574a036d72239 /sysdeps
parent4f4bd9e47ba98ccfeeaa8c600c0b0c8bbabcebb3 (diff)
downloadglibc-2976082a385a7fb3d0294c6acf745b4f93e834ee.tar.gz
glibc-2976082a385a7fb3d0294c6acf745b4f93e834ee.tar.xz
glibc-2976082a385a7fb3d0294c6acf745b4f93e834ee.zip
x86: Set RDRAND usable if CPU supports RDRAND
Set RDRAND usable if CPU supports RDRAND.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86/cpu-features.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
index f26deba38d..fe080b63b2 100644
--- a/sysdeps/x86/cpu-features.c
+++ b/sysdeps/x86/cpu-features.c
@@ -85,6 +85,7 @@ update_usable (struct cpu_features *cpu_features)
   CPU_FEATURE_SET_USABLE (cpu_features, WAITPKG);
   CPU_FEATURE_SET_USABLE (cpu_features, GFNI);
   CPU_FEATURE_SET_USABLE (cpu_features, RDPID);
+  CPU_FEATURE_SET_USABLE (cpu_features, RDRAND);
   CPU_FEATURE_SET_USABLE (cpu_features, CLDEMOTE);
   CPU_FEATURE_SET_USABLE (cpu_features, MOVDIRI);
   CPU_FEATURE_SET_USABLE (cpu_features, MOVDIR64B);