mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 06:20:06 +00:00
Assume Intel Core i3/i5/i7 processor if AVX is available
This commit is contained in:
parent
c8fc0c9169
commit
3d29045b5e
@ -1,3 +1,8 @@
|
||||
2011-06-02 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
|
||||
Assume Intel Core i3/i5/i7 processor if AVX is available.
|
||||
|
||||
2011-05-31 Andreas Schwab <schwab@redhat.com>
|
||||
|
||||
* nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
|
||||
|
@ -74,6 +74,7 @@ __init_cpu_features (void)
|
||||
}
|
||||
else if (family == 0x06)
|
||||
{
|
||||
ecx = __cpu_features.cpuid[COMMON_CPUID_INDEX_1].ecx;
|
||||
model += extended_model;
|
||||
switch (model)
|
||||
{
|
||||
@ -83,6 +84,12 @@ __init_cpu_features (void)
|
||||
__cpu_features.feature[index_Slow_BSF] |= bit_Slow_BSF;
|
||||
break;
|
||||
|
||||
default:
|
||||
/* Unknown family 0x06 processors. Assuming this is one
|
||||
of Core i3/i5/i7 processors if AVX is available. */
|
||||
if ((ecx & bit_AVX) == 0)
|
||||
break;
|
||||
|
||||
case 0x1a:
|
||||
case 0x1e:
|
||||
case 0x1f:
|
||||
|
Loading…
Reference in New Issue
Block a user