Skip to content

Commit af5bc95

Browse files
authored
Rename SILICON to VORTEX and fix duplicate numbering
1 parent ea3a58c commit af5bc95

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cpuid_arm64.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ size_t length=sizeof(value);
5151
// Ampere
5252
#define CPU_EMAG8180 10
5353
// Apple
54-
#define CPU_SILICON 11
54+
#define CPU_VORTEX 13
5555

5656
static char *cpuname[] = {
5757
"UNKNOWN",
@@ -67,7 +67,7 @@ static char *cpuname[] = {
6767
"EMAG8180",
6868
"NEOVERSEN1",
6969
"THUNDERX3T110",
70-
"SILICON"
70+
"VORTEX"
7171
};
7272

7373
static char *cpuname_lower[] = {
@@ -84,7 +84,7 @@ static char *cpuname_lower[] = {
8484
"emag8180",
8585
"neoversen1",
8686
"thunderx3t110",
87-
"silicon"
87+
"vortex"
8888
};
8989

9090
int get_feature(char *search)
@@ -209,7 +209,7 @@ int detect(void)
209209
#else
210210
#ifdef DARWIN
211211
sysctlbyname("hw.cpufamily",&value,&length,NULL,0);
212-
if (value ==131287967) return CPU_SILICON;
212+
if (value ==131287967) return CPU_VORTEX;
213213
#endif
214214
return CPU_ARMV8;
215215
#endif
@@ -415,8 +415,8 @@ void get_cpuconfig(void)
415415
printf("#define DTB_SIZE 4096 \n");
416416
break;
417417
#ifdef DARWIN
418-
case CPU_SILICON:
419-
printf("#define SILICON \n");
418+
case CPU_VORTEX:
419+
printf("#define VORTEX \n");
420420
sysctlbyname("hw.l1icachesize",&value,&length,NULL,0);
421421
printf("#define L1_CODE_SIZE %d \n",value);
422422
sysctlbyname("hw.cachelinesize",&value,&length,NULL,0);

0 commit comments

Comments
 (0)