Lines 637-669
const char *host_detect_local_cpu (int argc, const char **argv)
Link Here
|
637 |
} |
637 |
} |
638 |
else if (vendor == signature_CENTAUR_ebx) |
638 |
else if (vendor == signature_CENTAUR_ebx) |
639 |
{ |
639 |
{ |
640 |
if (arch) |
640 |
processor = PROCESSOR_GENERIC; |
|
|
641 |
|
642 |
switch (family) |
641 |
{ |
643 |
{ |
642 |
switch (family) |
644 |
default: |
643 |
{ |
645 |
/* We have no idea. */ |
644 |
case 6: |
646 |
break; |
645 |
if (model > 9) |
647 |
|
646 |
/* Use the default detection procedure. */ |
648 |
case 5: |
647 |
processor = PROCESSOR_GENERIC; |
649 |
if (has_3dnow || has_mmx) |
648 |
else if (model == 9) |
650 |
processor = PROCESSOR_I486; |
649 |
cpu = "c3-2"; |
651 |
break; |
650 |
else if (model >= 6) |
652 |
|
651 |
cpu = "c3"; |
653 |
case 6: |
652 |
else |
654 |
if (model > 9) |
653 |
processor = PROCESSOR_GENERIC; |
655 |
/* Use the default detection procedure. */ |
654 |
break; |
656 |
; |
655 |
case 5: |
657 |
else if (model == 9) |
656 |
if (has_3dnow) |
658 |
processor = PROCESSOR_PENTIUMPRO; |
657 |
cpu = "winchip2"; |
659 |
else if (model >= 6) |
658 |
else if (has_mmx) |
660 |
processor = PROCESSOR_I486; |
659 |
cpu = "winchip2-c6"; |
|
|
660 |
else |
661 |
processor = PROCESSOR_GENERIC; |
662 |
break; |
663 |
default: |
664 |
/* We have no idea. */ |
665 |
processor = PROCESSOR_GENERIC; |
666 |
} |
667 |
} |
661 |
} |
668 |
} |
662 |
} |
669 |
else |
663 |
else |
Lines 694-700
const char *host_detect_local_cpu (int argc, const char **argv)
Link Here
|
694 |
/* Default. */ |
688 |
/* Default. */ |
695 |
break; |
689 |
break; |
696 |
case PROCESSOR_I486: |
690 |
case PROCESSOR_I486: |
697 |
cpu = "i486"; |
691 |
if (arch && vendor == signature_CENTAUR_ebx) |
|
|
692 |
{ |
693 |
if (model >= 6) |
694 |
cpu = "c3"; |
695 |
else if (has_3dnow) |
696 |
cpu = "winchip2"; |
697 |
else if (has_mmx) |
698 |
cpu = "winchip2-c6"; |
699 |
} |
700 |
else |
701 |
cpu = "i486"; |
698 |
break; |
702 |
break; |
699 |
case PROCESSOR_PENTIUM: |
703 |
case PROCESSOR_PENTIUM: |
700 |
if (arch && has_mmx) |
704 |
if (arch && has_mmx) |
Lines 798-804
const char *host_detect_local_cpu (int argc, const char **argv)
Link Here
|
798 |
} |
802 |
} |
799 |
else if (has_ssse3) |
803 |
else if (has_ssse3) |
800 |
{ |
804 |
{ |
801 |
if (has_movbe) |
805 |
if (vendor == signature_CENTAUR_ebx) |
|
|
806 |
cpu = "x86-64"; |
807 |
else if (has_movbe) |
802 |
/* Assume Bonnell. */ |
808 |
/* Assume Bonnell. */ |
803 |
cpu = "bonnell"; |
809 |
cpu = "bonnell"; |
804 |
else |
810 |
else |
Lines 817-824
const char *host_detect_local_cpu (int argc, const char **argv)
Link Here
|
817 |
/* It is Pentium M. */ |
823 |
/* It is Pentium M. */ |
818 |
cpu = "pentium-m"; |
824 |
cpu = "pentium-m"; |
819 |
else if (has_sse) |
825 |
else if (has_sse) |
820 |
/* It is Pentium III. */ |
826 |
{ |
821 |
cpu = "pentium3"; |
827 |
if (vendor == signature_CENTAUR_ebx) |
|
|
828 |
cpu = "c3-2"; |
829 |
else |
830 |
/* It is Pentium III. */ |
831 |
cpu = "pentium3"; |
832 |
} |
822 |
else if (has_mmx) |
833 |
else if (has_mmx) |
823 |
/* It is Pentium II. */ |
834 |
/* It is Pentium II. */ |
824 |
cpu = "pentium2"; |
835 |
cpu = "pentium2"; |