From: Luke Kenneth Casson Leighton Date: Fri, 25 Jun 2021 18:12:13 +0000 (+0100) Subject: only set conditions in PowerDecoder2 for svp64 mode X-Git-Tag: xlen-bcd~376 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a451d71d5df39b3f99b9802711b524a71a70ed19;p=openpower-isa.git only set conditions in PowerDecoder2 for svp64 mode --- diff --git a/src/openpower/decoder/power_decoder2.py b/src/openpower/decoder/power_decoder2.py index a7098303..6ee8f821 100644 --- a/src/openpower/decoder/power_decoder2.py +++ b/src/openpower/decoder/power_decoder2.py @@ -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: