Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions cpuid_x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -1578,6 +1578,14 @@ int get_cpuname(void){
break;
case 12: //family 6 exmodel 12
switch (model) {
case 12: // Panther Lake
if(support_avx2())
return CPUTYPE_HASWELL;
if(support_avx())
return CPUTYPE_SANDYBRIDGE;
else
return CPUTYPE_NEHALEM;
break;
case 15:
case 6: // Arrow Lake
if(support_avx512())
Expand Down Expand Up @@ -2439,6 +2447,14 @@ int get_coretype(void){
return CORE_SANDYBRIDGE;
else
return CORE_NEHALEM;
break;
case 12: // Panther Lake
if(support_avx2())
return CORE_HASWELL;
if(support_avx())
return CORE_SANDYBRIDGE;
else
return CORE_NEHALEM;
}
}
case 15:
Expand Down
Loading