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:
committed by
Adrien Destugues
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 Extreme";
|
||||||
return "Core 2";
|
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";
|
return "Core i5";
|
||||||
|
}
|
||||||
if (model == 0x1a || model == 0x1e) {
|
if (model == 0x1a || model == 0x1e) {
|
||||||
get_cpuid_model_string(cpuidName);
|
get_cpuid_model_string(cpuidName);
|
||||||
if (strcasestr(cpuidName, "Xeon") != NULL)
|
if (strcasestr(cpuidName, "Xeon") != NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user