b1dca6
commit 2976082a385a7fb3d0294c6acf745b4f93e834ee
b1dca6
Author: H.J. Lu <hjl.tools@gmail.com>
b1dca6
Date:   Thu Dec 3 15:02:44 2020 -0800
b1dca6
b1dca6
    x86: Set RDRAND usable if CPU supports RDRAND
b1dca6
    
b1dca6
    Set RDRAND usable if CPU supports RDRAND.
b1dca6
b1dca6
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
b1dca6
index 4c9c15a44b618fed..805d00a43309fc23 100644
b1dca6
--- a/sysdeps/x86/cpu-features.c
b1dca6
+++ b/sysdeps/x86/cpu-features.c
b1dca6
@@ -85,6 +85,7 @@ update_usable (struct cpu_features *cpu_features)
b1dca6
   CPU_FEATURE_SET_USABLE (cpu_features, WAITPKG);
b1dca6
   CPU_FEATURE_SET_USABLE (cpu_features, GFNI);
b1dca6
   CPU_FEATURE_SET_USABLE (cpu_features, RDPID);
b1dca6
+  CPU_FEATURE_SET_USABLE (cpu_features, RDRAND);
b1dca6
   CPU_FEATURE_SET_USABLE (cpu_features, CLDEMOTE);
b1dca6
   CPU_FEATURE_SET_USABLE (cpu_features, MOVDIRI);
b1dca6
   CPU_FEATURE_SET_USABLE (cpu_features, MOVDIR64B);