gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ArmISA::DummyISADevice Class Reference

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

#include <isa_device.hh>

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

Public Member Functions

 DummyISADevice ()
 
 ~DummyISADevice ()
 
void setMiscReg (int misc_reg, MiscReg val) override
 Write to a system register belonging to this device. More...
 
MiscReg 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)
 

Additional Inherited Members

- Protected Attributes inherited from 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 93 of file isa_device.hh.

Constructor & Destructor Documentation

ArmISA::DummyISADevice::DummyISADevice ( )
inline

Definition at line 96 of file isa_device.hh.

ArmISA::DummyISADevice::~DummyISADevice ( )
inline

Definition at line 98 of file isa_device.hh.

Member Function Documentation

MiscReg ArmISA::DummyISADevice::readMiscReg ( int  misc_reg)
overridevirtual

Read a system register belonging to this device.

Parameters
misc_regRegister number (see miscregs.hh)
Returns
Register value.

Implements ArmISA::BaseISADevice.

Definition at line 67 of file isa_device.cc.

References ArmISA::miscRegName, and warn.

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

Write to a system register belonging to this device.

Parameters
misc_regRegister number (see miscregs.hh)
valValue to store

Implements ArmISA::BaseISADevice.

Definition at line 61 of file isa_device.cc.

References ArmISA::miscRegName, and warn.


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

Generated on Fri Jun 9 2017 13:04:29 for gem5 by doxygen 1.8.6