if opkls is None:
opkls = Decode2ToOperand
self.do = opkls(fn_name)
- col_subset = self.get_col_subset(self.do)
+ if final:
+ col_subset = self.get_col_subset(self.do)
+ row_subset = self.rowsubsetfn
+ else:
+ col_subset = None
+ row_subset = None
# "conditions" for Decoders, to enable some weird and wonderful
# alternatives. useful for PCR (Program Compatibility Register)
conditions = {'SVP64BREV': self.use_svp64_ldst_dec,
'~SVP64BREV': ~self.use_svp64_ldst_dec
}
+
# only needed for "main" PowerDecode2
if not self.final:
self.e = Decode2ToExecute1Type(name=self.fn_name, do=self.do,
# create decoder if one not already given
if dec is None:
dec = create_pdecode(name=fn_name, col_subset=col_subset,
- row_subset=self.rowsubsetfn,
+ row_subset=row_subset,
conditions=conditions)
self.dec = dec