gem5 v24.0.0.0
Loading...
Searching...
No Matches
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.
 
RegVal readMiscReg (int misc_reg) override
 Read a system register belonging to this device.
 
- 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 399 of file generic_timer.hh.

Constructor & Destructor Documentation

◆ GenericTimerISA()

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

Definition at line 402 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 973 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 966 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 410 of file generic_timer.hh.

◆ parent

GenericTimer& gem5::GenericTimerISA::parent
protected

Definition at line 409 of file generic_timer.hh.


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

Generated on Tue Jun 18 2024 16:24:11 for gem5 by doxygen 1.11.0