Commit d478ac59 by Ganesh Gopalasubramanian Committed by Ganesh Gopalasubramanian

Compute extend family info for AMD CPU and update for BTVER2

From-SVN: r213544
parent b085b0e9
2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
* config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
family information. Handle BTVER2 cpu with cpuid family value.
2014-08-04 Tom de Vries <tom@codesourcery.com>
* doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
......
......@@ -432,7 +432,8 @@ const char *host_detect_local_cpu (int argc, const char **argv)
model = (eax >> 4) & 0x0f;
family = (eax >> 8) & 0x0f;
if (vendor == signature_INTEL_ebx)
if (vendor == signature_INTEL_ebx
|| vendor == signature_AMD_ebx)
{
unsigned int extended_model, extended_family;
......@@ -576,7 +577,7 @@ const char *host_detect_local_cpu (int argc, const char **argv)
if (name == signature_NSC_ebx)
processor = PROCESSOR_GEODE;
else if (has_movbe)
else if (has_movbe && family == 22)
processor = PROCESSOR_BTVER2;
else if (has_avx2)
processor = PROCESSOR_BDVER4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment