ce426f
commit c9afcaaafaf9126a973883528eed8d0058a264c0
ce426f
Author: H.J. Lu <hjl.tools@gmail.com>
ce426f
Date:   Tue Dec 15 11:46:54 2015 -0800
ce426f
ce426f
    Enable Silvermont optimizations for Knights Landing
ce426f
ce426f
    Knights Landing processor is based on Silvermont.  This patch enables
ce426f
    Silvermont optimizations for Knights Landing.
ce426f
ce426f
        * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
ce426f
        Silvermont optimizations for Knights Landing.
ce426f
ce426f
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
ce426f
index fba3ef0..aff894c 100644
ce426f
--- a/sysdeps/x86/cpu-features.c
ce426f
+++ b/sysdeps/x86/cpu-features.c
ce426f
@@ -78,6 +78,9 @@ init_cpu_features (struct cpu_features *cpu_features)
ce426f
 	      cpu_features->feature[index_Slow_BSF] |= bit_Slow_BSF;
ce426f
 	      break;
ce426f
 
ce426f
+	    case 0x57:
ce426f
+	      /* Knights Landing.  Enable Silvermont optimizations.  */
ce426f
+
ce426f
 	    case 0x37:
ce426f
 	    case 0x4a:
ce426f
 	    case 0x4d: