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

Base class for devices that use the MiscReg interfaces. More...

#include <isa_device.hh>

Inheritance diagram for ArmISA::BaseISADevice:
ArmISA::DummyISADevice ArmISA::PMU GenericTimerISA

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

ISAisa
 

Detailed Description

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.

Constructor & Destructor Documentation

ArmISA::BaseISADevice::BaseISADevice ( )

Definition at line 47 of file isa_device.cc.

virtual ArmISA::BaseISADevice::~BaseISADevice ( )
inlinevirtual

Definition at line 62 of file isa_device.hh.

Member Function Documentation

virtual MiscReg ArmISA::BaseISADevice::readMiscReg ( int  misc_reg)
pure virtual

Read a system register belonging to this device.

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

Implemented in GenericTimerISA, ArmISA::PMU, and ArmISA::DummyISADevice.

Referenced by ArmISA::ISA::readMiscReg().

void ArmISA::BaseISADevice::setISA ( ISA isa)
virtual

Definition at line 53 of file isa_device.cc.

References isa.

virtual void ArmISA::BaseISADevice::setMiscReg ( int  misc_reg,
MiscReg  val 
)
pure virtual

Write to a system register belonging to this device.

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

Implemented in GenericTimerISA, ArmISA::PMU, and ArmISA::DummyISADevice.

Referenced by ArmISA::ISA::setMiscReg().

Member Data Documentation

ISA* ArmISA::BaseISADevice::isa
protected

Definition at line 83 of file isa_device.hh.

Referenced by ArmISA::PMU::isFiltered(), and setISA().


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