From 952fc0d79514efe03ddd5b734da59e45ae8d3849 Mon Sep 17 00:00:00 2001 From: Sintendo <3380580+Sintendo@users.noreply.github.com> Date: Sun, 29 Dec 2024 11:13:11 +0100 Subject: [PATCH] ArmCPUDetect: Implement Linux CSSC detection --- Source/Core/Common/ArmCPUDetect.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/ArmCPUDetect.cpp b/Source/Core/Common/ArmCPUDetect.cpp index f481655506f3..95d5c65a7fb8 100644 --- a/Source/Core/Common/ArmCPUDetect.cpp +++ b/Source/Core/Common/ArmCPUDetect.cpp @@ -273,9 +273,14 @@ void CPUInfo::Detect() bSHA1 = hwcap & HWCAP_SHA1; bSHA2 = hwcap & HWCAP_SHA2; -#if defined(AT_HWCAP2) && defined(HWCAP2_AFP) +#if defined(AT_HWCAP2) const u32 hwcap2 = ReadHwCap(AT_HWCAP2); +#if defined(HWCAP2_AFP) bAFP = hwcap2 & HWCAP2_AFP; +#endif +#if defined(HWCAP2_CSSC) + bCSSC = hwcap2 & HWCAP2_CSSC; +#endif #endif u64 midr = 0;