Also set CPUTYPE in get_cpuname()

This commit is contained in:
Matthew Treinish 2020-06-25 15:53:56 -04:00
parent f37e941d52
commit 2f9c10810c
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
1 changed files with 10 additions and 0 deletions

View File

@ -1406,6 +1406,16 @@ int get_cpuname(void){
return CPUTYPE_SANDYBRIDGE;
else
return CPUTYPE_NEHALEM;
}
case 10: //family 6 exmodel 10
switch (model) {
case 6: // Comet Lake U
if(support_avx2())
return CPUTYPE_HASWELL;
if(support_avx())
return CPUTYPE_SANDYBRIDGE;
else
return CPUTYPE_NEHALEM;
}
break;
}