Merge pull request #3800 from thrasibule/raptorlake

add raptor lake ids
This commit is contained in:
Martin Kroeker 2022-11-05 18:05:48 +01:00 committed by GitHub
commit 4743d80c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -1544,6 +1544,13 @@ int get_cpuname(void){
return CPUTYPE_NEHALEM;
}
break;
case 11: //family 6 exmodel 11
switch (model) {
case 7: // Raptor Lake
if(support_avx2())
return CPUTYPE_HASWELL;
}
break;
}
break;
case 0x7:
@ -2334,6 +2341,12 @@ int get_coretype(void){
return CORE_NEHALEM;
}
case 11:
switch (model) {
case 7: // Raptor Lake
if(support_avx2())
return CORE_HASWELL;
}
case 15:
if (model <= 0x2) return CORE_NORTHWOOD;
else return CORE_PRESCOTT;