Skip to content

Commit 0ae5e14

Browse files
authored
Detect CORTEX A53 and A72 as CORTEXA57
1 parent e0b0278 commit 0ae5e14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cpuid_arm64.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ int detect(void)
114114

115115
fclose(infile);
116116
if(cpu_part != NULL && cpu_implementer != NULL) {
117-
if (strstr(cpu_part, "0xd07") && strstr(cpu_implementer, "0x41"))
118-
return CPU_CORTEXA57;
117+
if (strstr(cpu_implementer, "0x41") &&
118+
(strstr(cpu_part, "0xd07") || strstr(cpu_part,"0xd08") || strstr(cpu_part,"0xd03") ))
119+
return CPU_CORTEXA57; //or compatible A53, A72
119120
else if (strstr(cpu_part, "0x516") && strstr(cpu_implementer, "0x42"))
120121
return CPU_VULCAN;
121122
else if (strstr(cpu_part, "0x0a1") && strstr(cpu_implementer, "0x43"))

0 commit comments

Comments
 (0)