gem5  v20.0.0.3
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.

References X86ISA::val.

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 836 of file generic_timer.cc.

References DPRINTF, ArmISA::miscRegName, GenericTimer::CoreTimers::parent, and GenericTimer::readMiscReg().

◆ 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 829 of file generic_timer.cc.

References DPRINTF, ArmISA::miscRegName, GenericTimer::CoreTimers::parent, and GenericTimer::setMiscReg().

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 Fri Jul 3 2020 15:53:14 for gem5 by doxygen 1.8.13