forked from I2P_Developers/i2p.i2p
CPUID: Recognize Hygon processors
This commit is contained in:
@ -477,6 +477,23 @@ class AMDInfoImpl extends CPUIDCPUInfo implements AMDCPUInfo
|
|||||||
modelString = "Ryzen model " + model;
|
modelString = "Ryzen model " + model;
|
||||||
}
|
}
|
||||||
break;
|
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;
|
return modelString;
|
||||||
}
|
}
|
||||||
|
@ -310,7 +310,8 @@ public class CPUID {
|
|||||||
return new VIAInfoImpl();
|
return new VIAInfoImpl();
|
||||||
if(!isX86)
|
if(!isX86)
|
||||||
throw new UnknownCPUException("Failed to read CPU information from the system. The CPUID instruction exists on x86 CPUs only.");
|
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();
|
return new AMDInfoImpl();
|
||||||
if(id.equals("GenuineIntel"))
|
if(id.equals("GenuineIntel"))
|
||||||
return new IntelInfoImpl();
|
return new IntelInfoImpl();
|
||||||
|
Reference in New Issue
Block a user