From c334ab215a11188b79b670b2afcb4d6369765b20 Mon Sep 17 00:00:00 2001 From: Alexander Coers Date: Thu, 3 May 2018 22:09:00 +0200 Subject: [PATCH] cpu_type.h: small fix for CPU detection * since Core i5/Core i3 can have same model/family/stepping values additional string evaluation is needed This fixes #12695 --- headers/private/shared/cpu_type.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/headers/private/shared/cpu_type.h b/headers/private/shared/cpu_type.h index 9c9751d5b3..8d06f4c546 100644 --- a/headers/private/shared/cpu_type.h +++ b/headers/private/shared/cpu_type.h @@ -383,8 +383,12 @@ get_cpu_model_string(enum cpu_platform platform, enum cpu_vendor cpuVendor, return "Core 2 Extreme"; return "Core 2"; } - if (model == 0x25) + if (model == 0x25) { + get_cpuid_model_string(cpuidName); + if (strcasestr(cpuidName, "i3") != NULL) + return "Core i3"; return "Core i5"; + } if (model == 0x1a || model == 0x1e) { get_cpuid_model_string(cpuidName); if (strcasestr(cpuidName, "Xeon") != NULL)