1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-31 11:19:18 +00:00

Detect Zen 3 (K19) CPUs

This commit is contained in:
Carles Fernandez 2021-03-03 19:56:05 +01:00
parent a669ecbfa3
commit 3ee671b225
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 5 additions and 0 deletions

View File

@ -129,6 +129,7 @@ typedef enum
AMD_BULLDOZER, // K15 AMD_BULLDOZER, // K15
AMD_JAGUAR, // K16 AMD_JAGUAR, // K16
AMD_ZEN, // K17 AMD_ZEN, // K17
AMD_ZEN3, // K19
} X86Microarchitecture; } X86Microarchitecture;
// Returns the underlying microarchitecture by looking at X86Info's vendor, // Returns the underlying microarchitecture by looking at X86Info's vendor,

View File

@ -1581,6 +1581,8 @@ X86Microarchitecture GetX86Microarchitecture(const X86Info* info)
return AMD_JAGUAR; return AMD_JAGUAR;
case 0x17: case 0x17:
return AMD_ZEN; return AMD_ZEN;
case 0x19:
return AMD_ZEN3;
default: default:
return X86_UNKNOWN; return X86_UNKNOWN;
} }
@ -1679,6 +1681,8 @@ const char* GetX86MicroarchitectureName(X86Microarchitecture uarch)
return "AMD_JAGUAR"; return "AMD_JAGUAR";
case AMD_ZEN: case AMD_ZEN:
return "AMD_ZEN"; return "AMD_ZEN";
case AMD_ZEN3:
return "AMD_ZEN3";
} }
return "unknown microarchitecture"; return "unknown microarchitecture";
} }