set srcstep/dststep to zero in StepLoop (ISACaller) at loopend
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 30 Sep 2022 13:39:27 +0000 (14:39 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 30 Sep 2022 13:39:27 +0000 (14:39 +0100)
see if a different style of looping can be used

src/openpower/decoder/isa/caller.py

index 942987d92934382dafe055aac912db7041d93ee9..1bc5bed45790399d56c8018160d101be3cde5bc7 100644 (file)
@@ -732,6 +732,7 @@ class StepLoop:
                     end_src = srcstep == vl-1
                     if end_src:  # end-point
                         self.loopend = True
+                        srcstep = 0
                         break
                     else:
                         srcstep += 1
@@ -794,6 +795,7 @@ class StepLoop:
                     end_dst = dststep == vl-1
                     if end_dst:  # end-point
                         self.loopend = True
+                        dststep = 0
                         break
                     else:
                         dststep += 1