from soc.fu.base_input_record import CompOpSubsetBase
from soc.decoder.power_enums import (MicrOp, Function)
+from soc.consts import TT
class CompTrapOpSubset(CompOpSubsetBase):
layout = (('insn_type', MicrOp),
('fn_unit', Function),
('insn', 32),
+ ('msr', 64), # TODO: "state" in separate Record
+ ('cia', 64), # likewise
('is_32bit', 1),
- ('traptype', 5), # see trap main_stage.py and PowerDecoder2
+ ('traptype', TT.size), # see trap main_stage.py, PowerDecoder2
('trapaddr', 13),
)