Merge pull request #1665 from martin-frbg/cpuid-ryzen2

Add cpuid for AMD Ryzen 2
This commit is contained in:
Martin Kroeker 2018-07-04 08:19:40 +02:00 committed by GitHub
commit 504310eeb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -1452,6 +1452,8 @@ int get_cpuname(void){
switch (model) { switch (model) {
case 1: case 1:
// AMD Ryzen // AMD Ryzen
case 8:
// AMD Ryzen2
if(support_avx()) if(support_avx())
#ifndef NO_AVX2 #ifndef NO_AVX2
return CPUTYPE_ZEN; return CPUTYPE_ZEN;

View File

@ -607,7 +607,7 @@ static gotoblas_t *get_coretype(void){
} }
} }
} else if (exfamily == 8) { } else if (exfamily == 8) {
if (model == 1) { if (model == 1 || model == 8) {
if(support_avx()) if(support_avx())
return &gotoblas_ZEN; return &gotoblas_ZEN;
else{ else{