|
gem5
v21.0.1.0
|
Dummy device that prints a warning when it is accessed. More...
#include <isa_device.hh>
Public Member Functions | |
| DummyISADevice () | |
| ~DummyISADevice () | |
| void | setMiscReg (int misc_reg, RegVal val) override |
| Write to a system register belonging to this device. More... | |
| RegVal | readMiscReg (int misc_reg) override |
| Read a system register belonging to this device. More... | |
Public Member Functions inherited from ArmISA::BaseISADevice | |
| BaseISADevice () | |
| virtual | ~BaseISADevice () |
| virtual void | setISA (ISA *isa) |
| virtual void | setThreadContext (ThreadContext *tc) |
Additional Inherited Members | |
Protected Attributes inherited from ArmISA::BaseISADevice | |
| ISA * | isa |
Dummy device that prints a warning when it is accessed.
This device can be used as a placeholder when a real device model is not present. For example, the ISA code uses it to avoid having to check for a PMU in the register access code.
Definition at line 94 of file isa_device.hh.
|
inline |
Definition at line 97 of file isa_device.hh.
|
inline |
Definition at line 99 of file isa_device.hh.
|
overridevirtual |
Read a system register belonging to this device.
| misc_reg | Register number (see miscregs.hh) |
Implements ArmISA::BaseISADevice.
Definition at line 67 of file isa_device.cc.
References ArmISA::miscRegName, and warn.
|
overridevirtual |
Write to a system register belonging to this device.
| misc_reg | Register number (see miscregs.hh) |
| val | Value to store |
Implements ArmISA::BaseISADevice.
Definition at line 59 of file isa_device.cc.
References ArmISA::miscRegName, X86ISA::val, and warn.