from soc.fu.pipe_data import FUBaseData, CommonPipeSpec
from openpower.exceptions import LDSTException
+# XXX NOTE: neither of these are actually used at present other than regspecs
+# TODO: make use of them in LDSTCompUnit (somehow)
class LDSTInputData(FUBaseData):
regspec = [('INT', 'ra', '0:63'), # RA
class LDSTOutputData(FUBaseData):
+ # these need to tie up with LDSTCompUnit.get_out index numbers
+ # LDSTCompUnit is unusual in that it's non-standard to RegSpecAPI
regspec = [('INT', 'o', '0:63'), # RT
('INT', 'o1', '0:63'), # RA (effective address, update mode)
- # TODO, later ('CR', 'cr_a', '0:3'),
+ ('CR', 'cr_a', '0:3'),
# TODO, later ('XER', 'xer_so', '32')
]
def __init__(self, pspec):
class LDSTPipeSpec(CommonPipeSpec):
- regspec = (LDSTInputData.regspec, LDSTOutputData.regspec)
+ regspecklses = (LDSTInputData, LDSTOutputData)
opsubsetkls = CompLDSTOpSubset