Detect Sandy Bridge 22nm desktop/mobile CPU.

This commit is contained in:
Zhang Xianyi 2012-07-05 13:41:03 +08:00
parent 699fc7641f
commit 6fcdaa4387
1 changed files with 33 additions and 21 deletions

View File

@ -996,6 +996,12 @@ int get_cpuname(void){
return CPUTYPE_NEHALEM; return CPUTYPE_NEHALEM;
} }
break; break;
case 3:
switch (model) {
case 10:
return CPUTYPE_SANDYBRIDGE;
}
break;
} }
break; break;
case 0x7: case 0x7:
@ -1349,6 +1355,12 @@ int get_coretype(void){
return CORE_NEHALEM; return CORE_NEHALEM;
} }
break; break;
case 3:
switch (model) {
case 10:
return CORE_SANDYBRIDGE;
}
break;
} }
break; break;