MCPcopy Create free account
hub / github.com/Kitware/CMake / RetrieveClassicalCPUIdentity

Method RetrieveClassicalCPUIdentity

Source/kwsys/SystemInformation.cxx:2898–3390  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

2896
2897/** */
2898bool SystemInformationImplementation::RetrieveClassicalCPUIdentity()
2899{
2900 // Start by decided which manufacturer we are using....
2901 switch (this->ChipManufacturer) {
2902 case Intel:
2903 // Check the family / model / revision to determine the CPU ID.
2904 switch (this->ChipID.Family) {
2905 case 3:
2906 this->ChipID.ProcessorName = "Newer i80386 family";
2907 break;
2908 case 4:
2909 switch (this->ChipID.Model) {
2910 case 0:
2911 this->ChipID.ProcessorName = "i80486DX-25/33";
2912 break;
2913 case 1:
2914 this->ChipID.ProcessorName = "i80486DX-50";
2915 break;
2916 case 2:
2917 this->ChipID.ProcessorName = "i80486SX";
2918 break;
2919 case 3:
2920 this->ChipID.ProcessorName = "i80486DX2";
2921 break;
2922 case 4:
2923 this->ChipID.ProcessorName = "i80486SL";
2924 break;
2925 case 5:
2926 this->ChipID.ProcessorName = "i80486SX2";
2927 break;
2928 case 7:
2929 this->ChipID.ProcessorName = "i80486DX2 WriteBack";
2930 break;
2931 case 8:
2932 this->ChipID.ProcessorName = "i80486DX4";
2933 break;
2934 case 9:
2935 this->ChipID.ProcessorName = "i80486DX4 WriteBack";
2936 break;
2937 default:
2938 this->ChipID.ProcessorName = "Unknown 80486 family";
2939 return false;
2940 }
2941 break;
2942 case 5:
2943 switch (this->ChipID.Model) {
2944 case 0:
2945 this->ChipID.ProcessorName = "P5 A-Step";
2946 break;
2947 case 1:
2948 this->ChipID.ProcessorName = "P5";
2949 break;
2950 case 2:
2951 this->ChipID.ProcessorName = "P54C";
2952 break;
2953 case 3:
2954 this->ChipID.ProcessorName = "P24T OverDrive";
2955 break;

Callers 2

QueryHaikuInfoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected