summaryrefslogtreecommitdiff
path: root/Source/Core/Common/ArmCPUDetect.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-06-08 01:20:24 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2015-06-08 01:20:24 -0500
commit3a3b782f3cf57464fb1e44f7925fb759cc1e0efb (patch)
tree2a4c19dccf32d53124356228517da73ad4a62037 /Source/Core/Common/ArmCPUDetect.cpp
parent1b6969ca678611965007b3233922cac5b21eef74 (diff)
[AArch64] Detect AES/SHA1/SHA2/CRC32 in CPUDetect.
Diffstat (limited to 'Source/Core/Common/ArmCPUDetect.cpp')
-rw-r--r--Source/Core/Common/ArmCPUDetect.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Common/ArmCPUDetect.cpp b/Source/Core/Common/ArmCPUDetect.cpp
index e17eb30f6b..aab1787ba6 100644
--- a/Source/Core/Common/ArmCPUDetect.cpp
+++ b/Source/Core/Common/ArmCPUDetect.cpp
@@ -239,8 +239,14 @@ void CPUInfo::Detect()
if (GetCPUImplementer() == 0x51 && GetCPUPart() == 0x6F) // Krait(300) is 0x6F, Scorpion is 0x4D
bIDIVa = bIDIVt = true;
// These two require ARMv8 or higher
+#ifdef _M_ARM_64
bFP = CheckCPUFeature("fp");
bASIMD = CheckCPUFeature("asimd");
+ bAES = CheckCPUFeature("aes");
+ bCRC32 = CheckCPUFeature("crc32");
+ bSHA1 = CheckCPUFeature("sha1");
+ bSHA2 = CheckCPUFeature("sha2");
+#endif
#endif
// On android, we build a separate library for ARMv7 so this is fine.
// TODO: Check for ARMv7 on other platforms.