From 3ee671b225558b848e58f53b50fa7c02c992ff75 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Wed, 3 Mar 2021 19:56:05 +0100 Subject: [PATCH] Detect Zen 3 (K19) CPUs --- .../volk_gnsssdr/cpu_features/include/cpuinfo_x86.h | 1 + .../volk_gnsssdr/cpu_features/src/cpuinfo_x86.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/include/cpuinfo_x86.h b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/include/cpuinfo_x86.h index 649595345..cb073a177 100644 --- a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/include/cpuinfo_x86.h +++ b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/include/cpuinfo_x86.h @@ -129,6 +129,7 @@ typedef enum AMD_BULLDOZER, // K15 AMD_JAGUAR, // K16 AMD_ZEN, // K17 + AMD_ZEN3, // K19 } X86Microarchitecture; // Returns the underlying microarchitecture by looking at X86Info's vendor, diff --git a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/src/cpuinfo_x86.c b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/src/cpuinfo_x86.c index e52172765..e84843e85 100644 --- a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/src/cpuinfo_x86.c +++ b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cpu_features/src/cpuinfo_x86.c @@ -1581,6 +1581,8 @@ X86Microarchitecture GetX86Microarchitecture(const X86Info* info) return AMD_JAGUAR; case 0x17: return AMD_ZEN; + case 0x19: + return AMD_ZEN3; default: return X86_UNKNOWN; } @@ -1679,6 +1681,8 @@ const char* GetX86MicroarchitectureName(X86Microarchitecture uarch) return "AMD_JAGUAR"; case AMD_ZEN: return "AMD_ZEN"; + case AMD_ZEN3: + return "AMD_ZEN3"; } return "unknown microarchitecture"; }