Commit af0e415b by Uros Bizjak Committed by Uros Bizjak

driver-i386.c (host_detect_local_cpu): Determine cache parameters using…

driver-i386.c (host_detect_local_cpu): Determine cache parameters using detect_caches_amd also for CYRIX...

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

From-SVN: r198989
parent 749dee7e
2013-05-16 Uros Bizjak <ubizjak@gmail.com> 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.
2013-05-16 Uros Bizjak <ubizjak@gmail.com>
Dzianis Kahanovich <mahatma@eu.by> Dzianis Kahanovich <mahatma@eu.by>
PR target/45359 PR target/45359
......
...@@ -518,7 +518,10 @@ const char *host_detect_local_cpu (int argc, const char **argv) ...@@ -518,7 +518,10 @@ const char *host_detect_local_cpu (int argc, const char **argv)
if (!arch) if (!arch)
{ {
if (vendor == signature_AMD_ebx 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); cache = detect_caches_amd (ext_level);
else if (vendor == signature_INTEL_ebx) else if (vendor == signature_INTEL_ebx)
{ {
...@@ -565,8 +568,9 @@ const char *host_detect_local_cpu (int argc, const char **argv) ...@@ -565,8 +568,9 @@ const char *host_detect_local_cpu (int argc, const char **argv)
{ {
if (arch) if (arch)
{ {
if (family == 6) switch (family)
{ {
case 6:
if (model > 9) if (model > 9)
/* Use the default detection procedure. */ /* Use the default detection procedure. */
processor = PROCESSOR_GENERIC32; processor = PROCESSOR_GENERIC32;
...@@ -575,18 +579,22 @@ const char *host_detect_local_cpu (int argc, const char **argv) ...@@ -575,18 +579,22 @@ const char *host_detect_local_cpu (int argc, const char **argv)
else if (model >= 6) else if (model >= 6)
cpu = "c3"; cpu = "c3";
else else
/* We have no idea. */
processor = PROCESSOR_GENERIC32; processor = PROCESSOR_GENERIC32;
} break;
else if (has_3dnow) case 5:
if (has_3dnow)
cpu = "winchip2"; cpu = "winchip2";
else if (has_mmx) else if (has_mmx)
cpu = "winchip2-c6"; cpu = "winchip2-c6";
else else
processor = PROCESSOR_GENERIC32;
break;
default:
/* We have no idea. */ /* We have no idea. */
processor = PROCESSOR_GENERIC32; processor = PROCESSOR_GENERIC32;
} }
} }
}
else else
{ {
switch (family) switch (family)
......
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