From f093894af1c2a559950071d212fd4d3a99e2691c Mon Sep 17 00:00:00 2001 From: Calvin Buckley Date: Sat, 20 Jul 2019 12:59:45 +0000 Subject: [PATCH] Fix Zen-based (family 0x8f) CPU naming Previously, it identified all Zen CPUs as Ryzen 7. Since the model and stepping information consist of microarchitecture information and don't carry the model number, use the parse_amd based name, which will remove any unnecessary details from the returned name. Fixes #15153. Change-Id: I1a20bf35a60b2fdd20d4cc90ec2dd95fd0e6439d Reviewed-on: https://review.haiku-os.org/c/1634 Reviewed-by: waddlesplash --- headers/private/shared/cpu_type.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/headers/private/shared/cpu_type.h b/headers/private/shared/cpu_type.h index 8a71c9fabe..63af90f21b 100644 --- a/headers/private/shared/cpu_type.h +++ b/headers/private/shared/cpu_type.h @@ -324,8 +324,7 @@ get_cpu_model_string(enum cpu_platform platform, enum cpu_vendor cpuVendor, return "FX-Series"; if (model == 0x10 || model == 0x13) return "A-Series"; - } else if (family == 0x8f) - return "Ryzen 7"; + } // Fallback to manual parsing of the model string get_cpuid_model_string(cpuidName);