]> sourceware.org Git - glibc.git/commitdiff
Incorrect x86 CPU family and model check.
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 27 May 2010 18:14:18 +0000 (11:14 -0700)
committerUlrich Drepper <drepper@redhat.com>
Thu, 27 May 2010 18:14:18 +0000 (11:14 -0700)
ChangeLog
sysdeps/x86_64/multiarch/init-arch.c

index e5866bf9041eace5b27a493e58978b1c00cc29f0..e43e75790db27006fcf2522af2c815db889b9f73 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #11640]
+       * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
+       Properly check family and model.
+
 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
 
        * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
index efb89b6c922a2d1ea95ab6d6397cf6df4549160c..f13a9f4b7992036af9779ed487cf225b9ca664da 100644 (file)
@@ -62,15 +62,15 @@ __init_cpu_features (void)
       unsigned int eax = __cpu_features.cpuid[COMMON_CPUID_INDEX_1].eax;
       unsigned int extended_family = (eax >> 20) & 0xff;
       unsigned int extended_model = (eax >> 12) & 0xf0;
-      if (__cpu_features.family == 0x0f)
+      if (family == 0x0f)
        {
          family += extended_family;
          model += extended_model;
        }
-      else if (__cpu_features.family == 0x06)
+      else if (family == 0x06)
        {
          model += extended_model;
-         switch (__cpu_features.model)
+         switch (model)
            {
            case 0x1a:
            case 0x1e:
This page took 0.047343 seconds and 5 git commands to generate.