Browse Source

Merge pull request #3810 from martin-frbg/fix3800

Add fallbacks to RaptorLake entry from PR3800
tags/v0.3.22^2
Martin Kroeker GitHub 2 years ago
parent
commit
f14435cb4b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      cpuid_x86.c

+ 11
- 1
cpuid_x86.c View File

@@ -1549,6 +1549,10 @@ int get_cpuname(void){
case 7: // Raptor Lake
if(support_avx2())
return CPUTYPE_HASWELL;
if(support_avx())
return CPUTYPE_SANDYBRIDGE;
else
return CPUTYPE_NEHALEM;
}
break;
}
@@ -2344,8 +2348,14 @@ int get_coretype(void){
case 11:
switch (model) {
case 7: // Raptor Lake
if(support_avx2())
#ifndef NO_AVX2
if(support_avx2())
return CORE_HASWELL;
#endif
if(support_avx())
return CORE_SANDYBRIDGE;
else
return CORE_NEHALEM;
}
case 15:
if (model <= 0x2) return CORE_NORTHWOOD;


Loading…
Cancel
Save