forked from I2P_Developers/i2p.i2p
JBigI: Fix zen/zen2/zen3 CPU names (ticket #1869)
This commit is contained in:
@@ -486,13 +486,21 @@ class AMDInfoImpl extends CPUIDCPUInfo implements AMDCPUInfo
|
||||
isExcavatorCompatible = true;
|
||||
isBulldozerCompatible = true;
|
||||
isZenCompatible = true;
|
||||
// Family 25 is zen 3, so they are definitely zen2 compatible
|
||||
// For now, we're only using zen2 binary for zen 3 processors.
|
||||
// TODO test for one of these instructions:
|
||||
// https://en.wikipedia.org/wiki/Zen_2
|
||||
// Some new instruction set extensions: WBNOINVD, CLWB, RDPID, RDPRU, MCOMMIT.
|
||||
// Each instruction uses its own CPUID bit.
|
||||
// As of GMP 6.2.0, the difference is only some parameter tweaks,
|
||||
// and zen2 is actually a little slower than zen.
|
||||
isZen2Compatible = family == 25;
|
||||
if (isZen2Compatible)
|
||||
modelString = "EPYC model " + model;
|
||||
modelString = "Ryzen/Epyc Zen 3 model " + model;
|
||||
else if (model == 1)
|
||||
modelString = "Ryzen 7";
|
||||
else
|
||||
modelString = "Ryzen model " + model;
|
||||
modelString = "Ryzen/Epyc model " + model;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user