fix vertical-first sv.bc
authorJacob Lifshay <programmerjake@gmail.com>
Tue, 21 Nov 2023 01:45:23 +0000 (17:45 -0800)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 1 Dec 2023 14:02:55 +0000 (14:02 +0000)
https://bugs.libre-soc.org/show_bug.cgi?id=1210

src/openpower/decoder/isa/caller.py

index 90682da7df32e978f4ca31f2ebde90b887e6040b..4b2646a2741bbf42c4ed9e43ce808f254511d68a 100644 (file)
@@ -2860,6 +2860,9 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop):
         vfirst = self.svstate.vfirst
         log("    SV Vertical First", vf, vfirst)
         if not vf and vfirst == 1:
+            if insn_name.startswith("sv.bc"):
+                self.update_pc_next()
+                return False
             self.update_nia()
             return True