Skip to content

Commit

Permalink
Incorrect x86 CPU family and model check.
Browse files Browse the repository at this point in the history
(cherry picked from commit 3c88fe1)
  • Loading branch information
H.J. Lu authored and Andreas Schwab committed Jun 1, 2010
1 parent f29cabc commit 6f8d0c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions sysdeps/x86_64/multiarch/init-arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6f8d0c6

Please sign in to comment.