Browse Source

Recognize newer Zhaoxin/Centaur cpus as Nehalem

tags/v0.3.16^2
Martin Kroeker GitHub 4 years ago
parent
commit
0d8d261dd4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      cpuid_x86.c

+ 6
- 1
cpuid_x86.c View File

@@ -1631,7 +1631,9 @@ int get_cpuname(void){
case 0x6:
return CPUTYPE_NANO;
break;

case 0x7:
return CPUTYPE_NEHALEM;
break;
}
return CPUTYPE_VIAC3;
}
@@ -2285,6 +2287,9 @@ int get_coretype(void){
case 0x6:
return CORE_NANO;
break;
case 0x7:
return CORE_NEHALEM;
break;
}
return CORE_VIAC3;
}


Loading…
Cancel
Save