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
This commit is contained in:
Alexander Coers 2018-05-03 22:09:00 +02:00 committed by Adrien Destugues
parent 91077c485a
commit c334ab215a
1 changed files with 5 additions and 1 deletions

View File

@ -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)