From b9c718180807f667a198c943f044189fe2a80309 Mon Sep 17 00:00:00 2001 From: hissingshark Date: Mon, 25 Apr 2022 23:31:44 +0100 Subject: [PATCH] Vero4k doesn't report its NEON support - so check for underlying Arm Cortex-A53. --- Common/ArmCPUDetect.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Common/ArmCPUDetect.cpp b/Common/ArmCPUDetect.cpp index b9368ca021..437bd3158e 100644 --- a/Common/ArmCPUDetect.cpp +++ b/Common/ArmCPUDetect.cpp @@ -324,6 +324,9 @@ void CPUInfo::Detect() unsigned short CPUPart = GetCPUPart(); if (GetCPUImplementer() == 0x51 && (CPUPart == 0x4D || CPUPart == 0x6F)) bIDIVa = bIDIVt = true; + // Vero4k supports NEON but doesn't report it. Check for Arm Cortex-A53. + if (GetCPUImplementer() == 0x41 && CPUPart == 0xd03) + bNEON = true; // These two require ARMv8 or higher bFP = CheckCPUFeature("fp"); bASIMD = CheckCPUFeature("asimd");