From a451d71d5df39b3f99b9802711b524a71a70ed19 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 25 Jun 2021 19:12:13 +0100 Subject: [PATCH] only set conditions in PowerDecoder2 for svp64 mode --- src/openpower/decoder/power_decoder2.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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: -- 2.30.2