gem5  v21.1.0.2
Public Member Functions | List of all members
gem5::ArmISA::DummyISADevice Class Reference

Dummy device that prints a warning when it is accessed. More...

#include <isa_device.hh>

Inheritance diagram for gem5::ArmISA::DummyISADevice:
gem5::ArmISA::BaseISADevice

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 gem5::ArmISA::BaseISADevice
 BaseISADevice ()
 
virtual ~BaseISADevice ()
 
virtual void setISA (ISA *isa)
 
virtual void setThreadContext (ThreadContext *tc)
 

Additional Inherited Members

- Protected Attributes inherited from gem5::ArmISA::BaseISADevice
ISAisa
 

Detailed Description

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 97 of file isa_device.hh.

Constructor & Destructor Documentation

◆ DummyISADevice()

gem5::ArmISA::DummyISADevice::DummyISADevice ( )
inline

Definition at line 100 of file isa_device.hh.

◆ ~DummyISADevice()

gem5::ArmISA::DummyISADevice::~DummyISADevice ( )
inline

Definition at line 102 of file isa_device.hh.

Member Function Documentation

◆ readMiscReg()

RegVal gem5::ArmISA::DummyISADevice::readMiscReg ( int  misc_reg)
overridevirtual

Read a system register belonging to this device.

Parameters
misc_regRegister number (see regs/misc.hh)
Returns
Register value.

Implements gem5::ArmISA::BaseISADevice.

Definition at line 71 of file isa_device.cc.

References gem5::ArmISA::miscRegName, and warn.

◆ setMiscReg()

void gem5::ArmISA::DummyISADevice::setMiscReg ( int  misc_reg,
RegVal  val 
)
overridevirtual

Write to a system register belonging to this device.

Parameters
misc_regRegister number (see regs/misc.hh)
valValue to store

Implements gem5::ArmISA::BaseISADevice.

Definition at line 63 of file isa_device.cc.

References gem5::ArmISA::miscRegName, gem5::X86ISA::val, and warn.


The documentation for this class was generated from the following files:

Generated on Tue Sep 21 2021 12:28:31 for gem5 by doxygen 1.8.17