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:
parent
91077c485a
commit
c334ab215a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue