diff mbox

[i386] : Use detect_caches_amd for other vendors

Message ID CAFULd4ZtitNyS6WT8deHM1bup9VV1B5LTosRVU27sAf5magBRw@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak May 16, 2013, 9:41 p.m. UTC
Hello!

According to cpuid dumps at [1], we can use detect_caches_amd for
several othver vendors.

2013-05-16  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/driver-i386.c (host_detect_local_cpu): Determine
    cache parameters using detect_caches_amd also for CYRIX,
    NSC and TM2 signatures.

Tested on x86_64-pc-linux-gnu and committed to mainline SVN.

[1] http://instlatx64.atw.hu/

Uros.
diff mbox

Patch

Index: config/i386/driver-i386.c
===================================================================
--- config/i386/driver-i386.c   (revision 198987)
+++ config/i386/driver-i386.c   (working copy)
@@ -518,7 +518,10 @@ 
   if (!arch)
     {
       if (vendor == signature_AMD_ebx
-         || vendor == signature_CENTAUR_ebx)
+         || vendor == signature_CENTAUR_ebx
+         || vendor == signature_CYRIX_ebx
+         || vendor == signature_NSC_ebx
+         || vendor == signature_TM2_ebx)
        cache = detect_caches_amd (ext_level);
       else if (vendor == signature_INTEL_ebx)
        {