Small fix for stitch.py

Change-Id: I8435aaeb4452b54e5563bbdb47b269f9d0a97b3a


[ROCm/rocprofiler commit: a5192bb9b3]
Cette révision appartient à :
Giovanni Baraldi a révisé 2024-11-20 15:28:51 -06:00
1 Parent 473af5ebe8
révision 3979438e90
1 fichier modifié
+4 -1
+4 -1
Voir le fichier
@@ -146,7 +146,10 @@ class RegisterWatchList:
# Matches tokens in reverse order
def try_match_swapped(self, i, line, increment):
return self.insts[i + 1].type == self.code[line][1] and self.insts[i].type == self.code[line + 1][1]
try:
return self.insts[i + 1].type == self.code[line][1] and self.insts[i].type == self.code[line + 1][1]
except:
return False
# Translates PC values to instructions, for auto captured ISA
class PCTranslator: