From 0ae5e1492377dc3e19b4f3485150c99665824fa0 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 6 Feb 2018 11:38:18 +0100 Subject: [PATCH] Detect CORTEX A53 and A72 as CORTEXA57 --- cpuid_arm64.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpuid_arm64.c b/cpuid_arm64.c index 3a7aec7be..bd7fb7f2d 100644 --- a/cpuid_arm64.c +++ b/cpuid_arm64.c @@ -114,8 +114,9 @@ int detect(void) fclose(infile); if(cpu_part != NULL && cpu_implementer != NULL) { - if (strstr(cpu_part, "0xd07") && strstr(cpu_implementer, "0x41")) - return CPU_CORTEXA57; + if (strstr(cpu_implementer, "0x41") && + (strstr(cpu_part, "0xd07") || strstr(cpu_part,"0xd08") || strstr(cpu_part,"0xd03") )) + return CPU_CORTEXA57; //or compatible A53, A72 else if (strstr(cpu_part, "0x516") && strstr(cpu_implementer, "0x42")) return CPU_VULCAN; else if (strstr(cpu_part, "0x0a1") && strstr(cpu_implementer, "0x43"))