[lldb] Extend isAArch64 to arm64 and arm64e
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 18 Aug 2021 01:05:46 +0000 (18:05 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 18 Aug 2021 02:45:45 +0000 (19:45 -0700)
This fixes TestMemoryTag on Apple Silicon.

lldb/packages/Python/lldbsuite/test/lldbtest.py

index 7e1fdce..a899b1b 100644 (file)
@@ -1293,7 +1293,8 @@ class Base(unittest2.TestCase):
 
     def isAArch64(self):
         """Returns true if the architecture is AArch64."""
-        return self.getArchitecture().lower() == "aarch64"
+        arch = self.getArchitecture().lower()
+        return arch in ["aarch64", "arm64", "arm64e"]
 
     def isAArch64SVE(self):
         return self.isAArch64() and "sve" in self.getCPUInfo()