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