gem5  v20.1.0.0
Public Member Functions | Protected Attributes | List of all members
GenericTimerISA Class Reference

#include <generic_timer.hh>

Inheritance diagram for GenericTimerISA:
ArmISA::BaseISADevice

Public Member Functions

 GenericTimerISA (GenericTimer &_parent, unsigned _cpu)
 
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)
 

Protected Attributes

GenericTimerparent
 
unsigned cpu
 
- Protected Attributes inherited from ArmISA::BaseISADevice
ISAisa
 

Detailed Description

Definition at line 378 of file generic_timer.hh.

Constructor & Destructor Documentation

◆ GenericTimerISA()

GenericTimerISA::GenericTimerISA ( GenericTimer _parent,
unsigned  _cpu 
)
inline

Definition at line 381 of file generic_timer.hh.

Member Function Documentation

◆ readMiscReg()

RegVal GenericTimerISA::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 869 of file generic_timer.cc.

References DPRINTF, ArmISA::miscRegName, and X86ISA::reg.

◆ setMiscReg()

void GenericTimerISA::setMiscReg ( int  misc_reg,
RegVal  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 862 of file generic_timer.cc.

References DPRINTF, ArmISA::miscRegName, X86ISA::reg, and X86ISA::val.

Member Data Documentation

◆ cpu

unsigned GenericTimerISA::cpu
protected

Definition at line 389 of file generic_timer.hh.

◆ parent

GenericTimer& GenericTimerISA::parent
protected

Definition at line 388 of file generic_timer.hh.


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

Generated on Wed Sep 30 2020 14:02:25 for gem5 by doxygen 1.8.17