bug 1231: all dc* instructions to be treated as nop
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 3 Dec 2023 11:32:28 +0000 (11:32 +0000)
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=1231#c1

src/openpower/decoder/isa/caller.py

index c5ed6857fdc3c0308409389c3fbae882e699c4fe..be7850287f9f2fc7153a30276388c032b938e04a 100644 (file)
@@ -2104,6 +2104,11 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop):
             illegal = False
             ins_name = dotstrp
 
+        # match against instructions treated as nop, see nop below
+        if asmop.startswith("dc"):
+            illegal = False
+            ins_name = "nop"
+
         # branch-conditional redirects to sv.bc
         if asmop.startswith('bc') and self.is_svp64_mode:
             ins_name = 'sv.%s' % ins_name