Skip to content

Commit dddd0c2

Browse files
committed
[lldb][AArch64] Simplify AArch64SMEFA64 check
So we only have to read cpuinfo once.
1 parent c82ebfb commit dddd0c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,9 +1275,8 @@ def isAArch64SMEFA64(self):
12751275
# smefa64 allows the use of the full A64 instruction set in streaming
12761276
# mode. This is required by certain test programs to setup register
12771277
# state.
1278-
return self.isAArch64SME() and set(["sme", "smefa64"]).issuperset(
1279-
set(self.getCPUInfo())
1280-
)
1278+
cpuinfo = self.getCPUInfo()
1279+
return self.isAArch64() and "sme" in cpuinfo and "smefa64" in cpuinfo
12811280

12821281
def isAArch64MTE(self):
12831282
return self.isAArch64() and "mte" in self.getCPUInfo()

0 commit comments

Comments
 (0)