explicitly copy SV RM decoded fields in PowerDecodeSubset
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 May 2021 12:37:22 +0000 (13:37 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 May 2021 12:37:22 +0000 (13:37 +0100)
src/openpower/decoder/power_decoder2.py

index 0bfa1d3d9cec21f124cc481bde50550a3ed06256..54c029e49c323ea9d7828ba5ccf6071d9bf99114 100644 (file)
@@ -921,8 +921,13 @@ class PowerDecodeSubset(Elaboratable):
 
         # copy over SVP64 input record fields (if they exist)
         if self.svp64_en:
-            for (field, _) in sv_input_record_layout:
-                comb += self.do_copy(field, self.op_get(field))
+            # TODO, really do we have to do these explicitly?? sigh
+            #for (field, _) in sv_input_record_layout:
+            #    comb += self.do_copy(field, self.rm_dec.op_get(field))
+            comb += self.do_copy("sv_pred_sz", self.rm_dec.pred_sz)
+            comb += self.do_copy("sv_pred_dz", self.rm_dec.pred_dz)
+            comb += self.do_copy("sv_saturate", self.rm_dec.saturate)
+            comb += self.do_copy("sv_Ptype", self.rm_dec.ptype_in)
         return m