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, 22 Dec 2023 19:26:21 +0000 (19:26 +0000)
https://bugs.libre-soc.org/show_bug.cgi?id=1210

src/openpower/decoder/isa/caller.py

index 735252c78f75d54fad9adb522e540c2fdef84ddf..8f1881ccc331e2411cd597f1d77486554879b6d0 100644 (file)
@@ -2831,6 +2831,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