from soc.fu.base_input_record import CompOpSubsetBase
from soc.decoder.power_enums import (MicrOp, Function)
from soc.consts import TT
-
+from soc.experiment.mem_types import LDSTException
class CompTrapOpSubset(CompOpSubsetBase):
"""CompTrapOpSubset
grab subsets.
"""
def __init__(self, name=None):
- layout = (('insn_type', MicrOp),
+ layout = [('insn_type', MicrOp),
('fn_unit', Function),
('insn', 32),
('msr', 64), # TODO: "state" in separate Record
('is_32bit', 1),
('traptype', TT.size), # see trap main_stage.py, PowerDecoder2
('trapaddr', 13),
- )
+ ('ldst_exc', len(LDSTException._exc_types)),
+ ]
super().__init__(layout, name=name)