Skip to content

Commit 97780e8

Browse files
committed
[lldb] Extend isAArch64 to arm64 and arm64e
This fixes TestMemoryTag on Apple Silicon. (cherry picked from commit a452ca4)
1 parent 703f6f3 commit 97780e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,8 @@ def getCPUInfo(self):
12971297

12981298
def isAArch64(self):
12991299
"""Returns true if the architecture is AArch64."""
1300-
return self.getArchitecture().lower() == "aarch64"
1300+
arch = self.getArchitecture().lower()
1301+
return arch in ["aarch64", "arm64", "arm64e"]
13011302

13021303
def isAArch64SVE(self):
13031304
return self.isAArch64() and "sve" in self.getCPUInfo()

0 commit comments

Comments
 (0)