Small fix for stitch.py

Change-Id: I8435aaeb4452b54e5563bbdb47b269f9d0a97b3a
This commit is contained in:
Giovanni Baraldi
2024-11-20 15:28:51 -06:00
vanhempi 225112b15e
commit a5192bb9b3
+4 -1
Näytä tiedosto
@@ -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: