gem5  v21.1.0.2
Public Member Functions | Protected Attributes | List of all members
gem5::GenericTimerISA Class Reference

#include <generic_timer.hh>

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

Protected Attributes

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

Detailed Description

Definition at line 390 of file generic_timer.hh.

Constructor & Destructor Documentation

◆ GenericTimerISA()

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

Definition at line 393 of file generic_timer.hh.

Member Function Documentation

◆ readMiscReg()

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

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

◆ setMiscReg()

void gem5::GenericTimerISA::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 863 of file generic_timer.cc.

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

Member Data Documentation

◆ cpu

unsigned gem5::GenericTimerISA::cpu
protected

Definition at line 401 of file generic_timer.hh.

◆ parent

GenericTimer& gem5::GenericTimerISA::parent
protected

Definition at line 400 of file generic_timer.hh.


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

Generated on Tue Sep 21 2021 12:27:38 for gem5 by doxygen 1.8.17