gem5  v20.1.0.0
Public Member Functions | Private Member Functions | List of all members
ArmISA::PMU::SWIncrementEvent Class Reference

#include <pmu.hh>

Inheritance diagram for ArmISA::PMU::SWIncrementEvent:
ArmISA::PMU::PMUEvent

Public Member Functions

void write (uint64_t val)
 write on the sw increment register inducing an increment of the counters with this event selected according to the bitfield written. More...
 
- Public Member Functions inherited from ArmISA::PMU::PMUEvent
 PMUEvent ()
 
virtual ~PMUEvent ()
 
void attachEvent (PMU::CounterState *user)
 attach this event to a given counter More...
 
void detachEvent (PMU::CounterState *user)
 detach this event from a given counter More...
 
virtual void increment (const uint64_t val)
 notify an event increment of val units, all the attached counters' value is incremented by val units. More...
 
virtual void updateAttachedCounters ()
 Method called immediately before a counter access in order for the associated event to update its state (if required) More...
 

Private Member Functions

void enable () override
 Enable the current event. More...
 
void disable () override
 Disable the current event. More...
 

Additional Inherited Members

- Protected Attributes inherited from ArmISA::PMU::PMUEvent
std::set< PMU::CounterState * > userCounters
 set of counters using this event
More...
 

Detailed Description

Definition at line 384 of file pmu.hh.

Member Function Documentation

◆ disable()

void ArmISA::PMU::SWIncrementEvent::disable ( )
inlineoverrideprivatevirtual

Disable the current event.

Implements ArmISA::PMU::PMUEvent.

Definition at line 387 of file pmu.hh.

◆ enable()

void ArmISA::PMU::SWIncrementEvent::enable ( )
inlineoverrideprivatevirtual

Enable the current event.

Implements ArmISA::PMU::PMUEvent.

Definition at line 386 of file pmu.hh.

◆ write()

void ArmISA::PMU::SWIncrementEvent::write ( uint64_t  val)

write on the sw increment register inducing an increment of the counters with this event selected according to the bitfield written.

Parameters
thebitfield selecting the counters to increment.

Definition at line 800 of file pmu.cc.

References X86ISA::val.

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


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

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