gem5.components.processors.abstract_processor.html
gem5.components.processors.abstract_processor module¶
- class gem5.components.processors.abstract_processor.AbstractProcessor(cores: List[AbstractCore] | None = None, isa: ISA = ISA.NULL)¶
Bases:
SubSystem- abstract = False¶
- cxx_exports = []¶
- cxx_extra_bases = []¶
- cxx_param_exports = []¶
- cxx_template_params = []¶
- get_cores() List[AbstractCore]¶
- get_num_cores() int¶
- get_total_instructions() int¶
Return the number of instructions executed by all cores.
Note: This total is the sum since the last call to reset stats
- abstract incorporate_processor(board: AbstractBoard) None¶
- override_create = False¶
- switch() None¶
Switch the processor to a different core type.
This function prints a warning and does nothing by default. Subclasses should override this method to implement switching.