diff options
author | KWSys Upstream <kwrobot@kitware.com> | 2021-01-05 11:54:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-05 11:56:02 (GMT) |
commit | 3887390a375ffb0bda5bd6d3758e10fe3645fc3d (patch) | |
tree | 0045e1e4b315419170bc153a4991e60b9fb529c1 | |
parent | eaf37ffde95e961aba6468fad81f00ef0ed388ae (diff) | |
download | CMake-3887390a375ffb0bda5bd6d3758e10fe3645fc3d.zip CMake-3887390a375ffb0bda5bd6d3758e10fe3645fc3d.tar.gz CMake-3887390a375ffb0bda5bd6d3758e10fe3645fc3d.tar.bz2 |
KWSys 2021-01-05 (a72d59e1)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit a72d59e12fcfcce1a88456effb6543bf3cd20dc9 (master).
Upstream Shortlog
-----------------
Dylan Fan (1):
e6cc4679 SystemInformation: Add Zhaoxin x86 processor
-rw-r--r-- | SystemInformation.cxx | 68 |
1 files changed, 63 insertions, 5 deletions
diff --git a/SystemInformation.cxx b/SystemInformation.cxx index 9c34a56..9607c00 100644 --- a/SystemInformation.cxx +++ b/SystemInformation.cxx @@ -447,6 +447,7 @@ public: Motorola, HP, Hygon, + Zhaoxin, UnknownManufacturer }; @@ -1731,7 +1732,8 @@ const char* SystemInformationImplementation::GetVendorID() case NexGen: return "NexGen Inc., Advanced Micro Devices"; case IDT: - return "IDT\\Centaur, Via Inc."; + return "IDT\\Centaur, Via Inc., Shanghai Zhaoxin Semiconductor Co., " + "Ltd."; case UMC: return "United Microelectronics Corp."; case Rise: @@ -1748,6 +1750,8 @@ const char* SystemInformationImplementation::GetVendorID() return "Hewlett-Packard"; case Hygon: return "Chengdu Haiguang IC Design Co., Ltd."; + case Zhaoxin: + return "Shanghai Zhaoxin Semiconductor Co., Ltd."; case UnknownManufacturer: default: return "Unknown Manufacturer"; @@ -2109,7 +2113,10 @@ void SystemInformationImplementation::FindManufacturer( else if (this->ChipID.Vendor == "NexGenDriven") this->ChipManufacturer = NexGen; // NexGen Inc. (now AMD) else if (this->ChipID.Vendor == "CentaurHauls") - this->ChipManufacturer = IDT; // IDT/Centaur (now VIA) + this->ChipManufacturer = IDT; // original IDT/Centaur/VIA (now Zhaoxin) + else if (this->ChipID.Vendor == " Shanghai ") + this->ChipManufacturer = + Zhaoxin; // Shanghai Zhaoxin Semiconductor Co., Ltd. else if (this->ChipID.Vendor == "RiseRiseRise") this->ChipManufacturer = Rise; // Rise else if (this->ChipID.Vendor == "GenuineTMx86") @@ -3223,7 +3230,8 @@ bool SystemInformationImplementation::RetrieveClassicalCPUIdentity() this->ChipID.ProcessorName = "C3"; break; default: - this->ChipID.ProcessorName = "Unknown IDT\\Centaur family"; + this->ChipID.ProcessorName = + "Unknown IDT\\Centaur\\VIA\\Zhaoxin family"; return false; } break; @@ -3232,13 +3240,63 @@ bool SystemInformationImplementation::RetrieveClassicalCPUIdentity() case 6: this->ChipID.ProcessorName = "VIA Cyrix III - Samuel"; break; + case 0xf: + this->ChipID.ProcessorName = "Zhaoxin zxc"; + break; + default: + this->ChipID.ProcessorName = + "Unknown IDT\\Centaur\\VIA\\Zhaoxin family"; + return false; + } + break; + case 7: + switch (this->ChipID.Model) { + case 0x1b: + this->ChipID.ProcessorName = "Zhaoxin kx5000"; + break; + case 0x3b: + this->ChipID.ProcessorName = "Zhaoxin kx6000"; + break; + default: + this->ChipID.ProcessorName = + "Unknown IDT\\Centaur\\VIA\\Zhaoxin family"; + return false; + } + break; + default: + this->ChipID.ProcessorName = + "Unknown IDT\\Centaur\\VIA\\Zhaoxin family"; + return false; + } + break; + + case Zhaoxin: + switch (this->ChipID.Family) { + case 6: + switch (this->ChipID.Model) { + case 0x19: + this->ChipID.ProcessorName = "Zhaoxin zxc"; + break; + default: + this->ChipID.ProcessorName = "Unknown Zhaoxin family"; + return false; + } + break; + case 7: + switch (this->ChipID.Model) { + case 0x1b: + this->ChipID.ProcessorName = "Zhaoxin kx5000"; + break; + case 0x3b: + this->ChipID.ProcessorName = "Zhaoxin kx6000"; + break; default: - this->ChipID.ProcessorName = "Unknown IDT\\Centaur family"; + this->ChipID.ProcessorName = "Unknown Zhaoxin family"; return false; } break; default: - this->ChipID.ProcessorName = "Unknown IDT\\Centaur family"; + this->ChipID.ProcessorName = "Unknown Zhaoxin family"; return false; } break; |