only set conditions in PowerDecoder2 for svp64 mode
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 25 Jun 2021 18:12:13 +0000 (19:12 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 25 Jun 2021 18:12:13 +0000 (19:12 +0100)
src/openpower/decoder/power_decoder2.py

index a7098303289b8369747ac34bfb1cf10f27bd3978..6ee8f821ef4341438a81ed9252f81bd10a3e0a71 100644 (file)
@@ -777,9 +777,12 @@ class PowerDecodeSubset(Elaboratable):
         # "conditions" for Decoders, to enable some weird and wonderful
         # alternatives.  useful for PCR (Program Compatibility Register)
         # amongst other things
-        conditions = {'SVP64BREV': self.use_svp64_ldst_dec,
-                      '~SVP64BREV': ~self.use_svp64_ldst_dec
-                     }
+        if svp64_en:
+            conditions = {'SVP64BREV': self.use_svp64_ldst_dec,
+                          '~SVP64BREV': ~self.use_svp64_ldst_dec
+                         }
+        else:
+            conditions = None
 
         # only needed for "main" PowerDecode2
         if not self.final: