caller.py: fix undefined ffirst, hope I guessed the correct value
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 13 Dec 2023 00:50:27 +0000 (16:50 -0800)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:22 +0000 (19:26 +0000)
src/openpower/decoder/isa/caller.py

index da73f98b718c5087f0204ae5363954f4bc0beda9..b0b09f06cee2234d6f7521546594cc0e6d5f97a8 100644 (file)
@@ -2924,6 +2924,7 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop):
             # because there *is* no destination register
             # (SV normally only terminates on 1st scalar reg written
             #  except in [slightly-misnamed] mapreduce mode)
+            ffirst = yield from is_ffirst_mode(self.dec2)
             if insn_name.startswith("sv.bc") or ffirst:
                 self.update_pc_next()
                 return False