Patchwork cpuid check code in libgcc, fix cpuinfo code for sandybridge detection

login
register
mail settings
Submitter Sriraman Tallam
Date March 8, 2013, 1:05 a.m.
Message ID <CAAs8HmxN3jAfCD_NwZBR8QvoF=M88C8arETTrPrNaYs9LgZ37w@mail.gmail.com>
Download mbox | patch
Permalink /patch/226002/
State New
Headers show

Comments

Sriraman Tallam - March 8, 2013, 1:05 a.m.
Hi,

   I committed this simple patch to check for sandybridge processors
when cpuid model number is 0x2d. This is the model for SandyBridge-E
processors : http://software.intel.com/en-us/articles/intel-architecture-and-processor-identification-with-cpuid-model-and-family-numbers




Thanks
Sri

Patch

Index: config/i386/cpuinfo.c
===================================================================
--- config/i386/cpuinfo.c (revision 196527)
+++ config/i386/cpuinfo.c (working copy)
@@ -178,6 +178,7 @@  get_intel_cpu (unsigned int family, unsigned int m
       __cpu_model.__cpu_subtype = INTEL_COREI7_WESTMERE;
       break;
     case 0x2a:
+    case 0x2d:
       /* Sandy Bridge.  */
       __cpu_model.__cpu_type = INTEL_COREI7;
       __cpu_model.__cpu_subtype = INTEL_COREI7_SANDYBRIDGE;