cyclemodel/inorder.py: fix syntax error
authorDmitry Selyutin <ghostmansd@gmail.com>
Mon, 15 May 2023 19:38:08 +0000 (19:38 +0000)
committerDmitry Selyutin <ghostmansd@gmail.com>
Mon, 15 May 2023 19:38:08 +0000 (19:38 +0000)
src/openpower/cyclemodel/inorder.py

index 99512458053b5116a71667070e6e9a67aec11c72..8dad20b8a87d652d50e93069f5b431d386ed8bf4 100644 (file)
@@ -65,7 +65,7 @@ class Execute:
         for instruction in instructions:
             to_write.update(instruction['writes'])
         # see if all writes can be done, otherwise stall
-        writes_possible = self.cpu.writes_possible(to_write):
+        writes_possible = self.cpu.writes_possible(to_write)
         if writes_possible != to_write:
             stall = True
         # retire the writes that are possible in this cycle (regfile writes)
@@ -122,7 +122,7 @@ class Decode:
         # get current instruction
         insn, writeregs, readregs = self.stages[0]
         # check that the readregs are all available
-        reads_possible = self.cpu.reads_possible(readregs):
+        reads_possible = self.cpu.reads_possible(readregs)
         stall = reads_possible != readregs
         # perform the "reads" that are possible in this cycle
         readregs.difference_update(reads_possible)