CPUID: Recognize Hygon processors

This commit is contained in:
zzz
2018-07-10 20:33:23 +00:00
parent 02669fafde
commit f6da5f43aa
2 changed files with 19 additions and 1 deletions

View File

@ -477,6 +477,23 @@ class AMDInfoImpl extends CPUIDCPUInfo implements AMDCPUInfo
modelString = "Ryzen model " + model;
}
break;
// http://lkml.iu.edu/hypermail/linux/kernel/1806.1/00730.html
// untested
case 24: {
isK6Compatible = true;
isK6_2_Compatible = true;
isK6_3_Compatible = true;
isAthlonCompatible = true;
isAthlon64Compatible = true;
// Pending testing of the bulldozer jbigi
//isPiledriverCompatible = true;
//isSteamrollerCompatible = true;
//isExcavatorCompatible = true;
//isBulldozerCompatible = true;
modelString = "Hygon Dhyana model " + model;
}
break;
}
return modelString;
}

View File

@ -310,7 +310,8 @@ public class CPUID {
return new VIAInfoImpl();
if(!isX86)
throw new UnknownCPUException("Failed to read CPU information from the system. The CPUID instruction exists on x86 CPUs only.");
if(id.equals("AuthenticAMD"))
// http://lkml.iu.edu/hypermail/linux/kernel/1806.1/00730.html
if(id.equals("AuthenticAMD") || id.equals("HygonGenuine"))
return new AMDInfoImpl();
if(id.equals("GenuineIntel"))
return new IntelInfoImpl();