gem5
|
Base class for devices that use the MiscReg interfaces. More...
#include <isa_device.hh>
Public Member Functions | |
BaseISADevice () | |
virtual | ~BaseISADevice () |
virtual void | setISA (ISA *isa) |
virtual void | setMiscReg (int misc_reg, MiscReg val)=0 |
Write to a system register belonging to this device. More... | |
virtual MiscReg | readMiscReg (int misc_reg)=0 |
Read a system register belonging to this device. More... | |
Protected Attributes | |
ISA * | isa |
Base class for devices that use the MiscReg interfaces.
This class provides a well-defined interface that the ArmISA class can use when forwarding MiscReg accesses to a device model (e.g., a PMU or GIC).
Definition at line 58 of file isa_device.hh.
ArmISA::BaseISADevice::BaseISADevice | ( | ) |
Definition at line 47 of file isa_device.cc.
|
inlinevirtual |
Definition at line 62 of file isa_device.hh.
|
pure virtual |
Read a system register belonging to this device.
misc_reg | Register number (see miscregs.hh) |
Implemented in GenericTimerISA, ArmISA::PMU, and ArmISA::DummyISADevice.
Referenced by ArmISA::ISA::readMiscReg().
|
virtual |
Definition at line 53 of file isa_device.cc.
References isa.
|
pure virtual |
Write to a system register belonging to this device.
misc_reg | Register number (see miscregs.hh) |
val | Value to store |
Implemented in GenericTimerISA, ArmISA::PMU, and ArmISA::DummyISADevice.
Referenced by ArmISA::ISA::setMiscReg().
|
protected |
Definition at line 83 of file isa_device.hh.
Referenced by ArmISA::PMU::isFiltered(), and setISA().