Skip to content

Commit

Permalink
Merge pull request #2055 from martin-frbg/atomid
Browse files Browse the repository at this point in the history
Add CPUID data for Intel Denverton (as Nehalem)
  • Loading branch information
martin-frbg authored Mar 12, 2019
2 parents f18ab6c + 04f2226 commit 3ce28fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions cpuid_x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -1359,6 +1359,8 @@ int get_cpuname(void){
return CPUTYPE_NEHALEM;
case 12:
// Apollo Lake
case 15:
// Denverton
return CPUTYPE_NEHALEM;
}
break;
Expand All @@ -1376,9 +1378,9 @@ int get_cpuname(void){
}
break;
case 9:
case 8:
case 8:
switch (model) {
case 14: // Kaby Lake
case 14: // Kaby Lake and refreshes
if(support_avx2())
return CPUTYPE_HASWELL;
if(support_avx())
Expand Down
4 changes: 2 additions & 2 deletions driver/others/dynamic.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ static gotoblas_t *get_coretype(void){
return &gotoblas_NEHALEM; //OS doesn't support AVX. Use old kernels.
}
}
//Apollo Lake
if (model == 12) {
//Apollo Lake or Denverton
if (model == 12 || model == 15) {
return &gotoblas_NEHALEM;
}
return NULL;
Expand Down

0 comments on commit 3ce28fb

Please sign in to comment.