File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1379,8 +1379,6 @@ int get_cpuname(void){
1379
1379
break ;
1380
1380
case 7 : // family 6 exmodel 7
1381
1381
switch (model ) {
1382
- case 10 : // Goldmont Plus
1383
- return CPUTYPE_NEHALEM ;
1384
1382
case 14 : // Ice Lake
1385
1383
if (support_avx512 ())
1386
1384
return CPUTYPE_SKYLAKEX ;
@@ -1427,7 +1425,11 @@ int get_cpuname(void){
1427
1425
case 0x5 :
1428
1426
return CPUTYPE_AMDK6 ;
1429
1427
case 0x6 :
1428
+ #if defined(__x86_64__ ) || defined(__amd64__ )
1429
+ return CPUTYPE_BARCELONA ;
1430
+ #else
1430
1431
return CPUTYPE_ATHLON ;
1432
+ #endif
1431
1433
case 0xf :
1432
1434
switch (exfamily ) {
1433
1435
case 0 :
@@ -1810,7 +1812,11 @@ int get_coretype(void){
1810
1812
case 4 :
1811
1813
case 5 :
1812
1814
case 6 :
1815
+ #if defined(__x86_64__ ) || defined(__amd64__ )
1816
+ return CORE_CORE2 ;
1817
+ #else
1813
1818
return CORE_P6 ;
1819
+ #endif
1814
1820
case 7 :
1815
1821
return CORE_KATMAI ;
1816
1822
case 8 :
@@ -2017,7 +2023,11 @@ int get_coretype(void){
2017
2023
2018
2024
if (vendor == VENDOR_AMD ){
2019
2025
if (family <= 0x5 ) return CORE_80486 ;
2026
+ #if defined(__x86_64__ ) || defined(__amd64__ )
2027
+ if (family <= 0xe ) return CORE_BARCELONA ;
2028
+ #else
2020
2029
if (family <= 0xe ) return CORE_ATHLON ;
2030
+ #endif
2021
2031
if (family == 0xf ){
2022
2032
if ((exfamily == 0 ) || (exfamily == 2 )) return CORE_OPTERON ;
2023
2033
else if (exfamily == 5 ) return CORE_BOBCAT ;
You can’t perform that action at this time.
0 commit comments