Skip to content

Commit

Permalink
ArmCPUDetect: Implement Linux CSSC detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Sintendo committed Dec 29, 2024
1 parent 822df52 commit a4876f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/Core/Common/ArmCPUDetect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a4876f5

Please sign in to comment.