Commit a239d460 by Jocelyn Mayer Committed by Uros Bizjak

driver-i386.c (host_detect_local_cpu): Set PROCESSOR_PENTIUMPRO for…

driver-i386.c (host_detect_local_cpu): Set PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.

	* config/i386/driver-i386.c (host_detect_local_cpu): Set
	PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
	<case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
	signature_CENTAUR_ebx.

From-SVN: r237741
parent f6d1b868
2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
* config/i386/driver-i386.c (host_detect_local_cpu): Set
PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
<case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
signature_CENTAUR_ebx.
2016-06-23 H.J. Lu <hongjiu.lu@intel.com> 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
PR target/66232 PR target/66232
......
...@@ -653,10 +653,7 @@ const char *host_detect_local_cpu (int argc, const char **argv) ...@@ -653,10 +653,7 @@ const char *host_detect_local_cpu (int argc, const char **argv)
case 6: case 6:
if (has_longmode) if (has_longmode)
processor = PROCESSOR_K8; processor = PROCESSOR_K8;
else if (model > 9) else if (model >= 9)
/* Use the default detection procedure. */
;
else if (model == 9)
processor = PROCESSOR_PENTIUMPRO; processor = PROCESSOR_PENTIUMPRO;
else if (model >= 6) else if (model >= 6)
processor = PROCESSOR_I486; processor = PROCESSOR_I486;
...@@ -818,15 +815,27 @@ const char *host_detect_local_cpu (int argc, const char **argv) ...@@ -818,15 +815,27 @@ const char *host_detect_local_cpu (int argc, const char **argv)
as all the CPUs below are 32-bit only. */ as all the CPUs below are 32-bit only. */
cpu = "x86-64"; cpu = "x86-64";
else if (has_sse3) else if (has_sse3)
/* It is Core Duo. */ {
cpu = "pentium-m"; if (vendor == signature_CENTAUR_ebx)
/* C7 / Eden "Esther" */
cpu = "c7";
else
/* It is Core Duo. */
cpu = "pentium-m";
}
else if (has_sse2) else if (has_sse2)
/* It is Pentium M. */ /* It is Pentium M. */
cpu = "pentium-m"; cpu = "pentium-m";
else if (has_sse) else if (has_sse)
{ {
if (vendor == signature_CENTAUR_ebx) if (vendor == signature_CENTAUR_ebx)
cpu = "c3-2"; {
if (model >= 9)
/* Eden "Nehemiah" */
cpu = "nehemiah";
else
cpu = "c3-2";
}
else else
/* It is Pentium III. */ /* It is Pentium III. */
cpu = "pentium3"; cpu = "pentium3";
......
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