Fix bad copypasta of code from cpuid_x86

This commit is contained in:
Martin Kroeker 2018-06-17 11:30:25 +02:00 committed by GitHub
parent 2369240a5a
commit 3242317eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -342,16 +342,16 @@ static gotoblas_t *get_coretype(void){
if (model == 6) { if (model == 6) {
// Cannon Lake // Cannon Lake
#ifndef NO_AVX512 #ifndef NO_AVX512
return CPUTYPE_SKYLAKEX; return &gotoblas_SKYLAKEX;
#else #else
if(support_avx()) if(support_avx())
#ifndef NO_AVX2 #ifndef NO_AVX2
return CPUTYPE_HASWELL; return &gotoblas_HASWELL;
#else #else
return CPUTYPE_SANDYBRIDGE; return &gotblas_SANDYBRIDGE;
#endif #endif
else else
return CPUTYPE_NEHALEM; return &gotoblas_NEHALEM;
#endif #endif
} }
return NULL; return NULL;