Commit 76930e30 by Abseil Team Committed by Copybara-Service

Add CPU detection for AMD Genoa and Ryzen 3000

PiperOrigin-RevId: 561108037
Change-Id: Idff65e288384cb55ce69f789db2d9374ae781d3d
parent b13016e5
...@@ -189,8 +189,14 @@ CpuType GetAmdCpuType() { ...@@ -189,8 +189,14 @@ CpuType GetAmdCpuType() {
break; break;
case 0x19: case 0x19:
switch (model_num) { switch (model_num) {
case 0x0: // Stepping Ax
case 0x1: // Stepping B0 case 0x1: // Stepping B0
return CpuType::kAmdMilan; return CpuType::kAmdMilan;
case 0x10: // Stepping A0
case 0x11: // Stepping B0
return CpuType::kAmdGenoa;
case 0x44: // Stepping A0
return CpuType::kAmdRyzenV3000;
default: default:
return CpuType::kUnknown; return CpuType::kUnknown;
} }
......
...@@ -29,6 +29,8 @@ enum class CpuType { ...@@ -29,6 +29,8 @@ enum class CpuType {
kAmdRome, kAmdRome,
kAmdNaples, kAmdNaples,
kAmdMilan, kAmdMilan,
kAmdGenoa,
kAmdRyzenV3000,
kIntelCascadelakeXeon, kIntelCascadelakeXeon,
kIntelSkylakeXeon, kIntelSkylakeXeon,
kIntelBroadwell, kIntelBroadwell,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment