gem5  v20.1.0.0
Public Types | Static Public Attributes | Protected Types | Static Protected Attributes | List of all members
EventBase Class Reference

Common base class for Event and GlobalEvent, so they can share flag and priority definitions and accessor functions. More...

#include <eventq.hh>

Inheritance diagram for EventBase:
BaseGlobalEvent Event BaseGlobalEventTemplate< Derived > BaseGlobalEventTemplate< GlobalEvent > BaseGlobalEventTemplate< GlobalSyncEvent > BaseGlobalEvent::BarrierEvent BasePixelPump::PixelEvent BaseRemoteGDB::TrapEvent ComputeUnit::ScalarDataPort::MemReqEvent CountedExitEvent CPUProgressEvent DefaultFetch< Impl >::FinishTranslationEvent DmaReadFifo::DmaDoneEvent DVFSHandler::UpdateEvent EventFunctionWrapper EventWrapper< T, F > EventWrapper< A9GlobalTimer::Timer, &Timer::counterAtCmpVal > EventWrapper< BaseRemoteGDB, &BaseRemoteGDB::singleStep > EventWrapper< PowerDomain, &PowerDomain::setFollowerPowerStates > EventWrapper< QoS::MemSinkCtrl, &MemSinkCtrl::processNextReqEvent > EventWrapper< sc_gem5::Kernel, &Kernel::t0Handler > EventWrapper< sc_gem5::Scheduler, &Scheduler::maxTickFunc > EventWrapper< sc_gem5::Scheduler, &Scheduler::pause > EventWrapper< sc_gem5::Scheduler, &Scheduler::runReady > EventWrapper< sc_gem5::Scheduler, &Scheduler::stop > EventWrapper< sc_gem5::Scheduler, &Scheduler::timeAdvances > EventWrapper< SMMUv3, &SMMUv3::processCommands > EventWrapper< SMMUv3DeviceInterface, &SMMUv3DeviceInterface::atsSendDeviceRetry > HSAPacketProcessor::CmdQueueCmdDmaEvent HSAPacketProcessor::DepSignalsReadDmaEvent HSAPacketProcessor::QueueProcessEvent HSAPacketProcessor::UpdateReadDispIdDmaEvent HWScheduler::SchedulerWakeupEvent InstructionQueue< Impl >::FUCompletion Intel8254Timer::Counter::CounterEvent LdsState::TickEvent LocalSimLoopExitEvent LSQUnit< Impl >::WritebackEvent MC146818::RTCEvent MC146818::RTCTickEvent PyEvent RegisterFile::RegisterEvent sc_gem5::Scheduler::TimeSlot SMMUDeviceRetryEvent TimingSimpleCPU::IprEvent TimingSimpleCPU::TimingCPUPort::TickEvent Trace::TarmacParserRecord::TarmacParserRecordEvent X86ISA::GpuTLB::TLBEvent

Public Types

typedef int8_t Priority
 

Static Public Attributes

static const Priority Minimum_Pri = SCHAR_MIN
 Event priorities, to provide tie-breakers for events scheduled at the same cycle. More...
 
static const Priority Debug_Enable_Pri = -101
 If we enable tracing on a particular cycle, do that as the very first thing so we don't miss any of the events on that cycle (even if we enter the debugger). More...
 
static const Priority Debug_Break_Pri = -100
 Breakpoints should happen before anything else (except enabling trace output), so we don't miss any action when debugging. More...
 
static const Priority CPU_Switch_Pri = -31
 CPU switches schedule the new CPU's tick event for the same cycle (after unscheduling the old CPU's tick event). More...
 
static const Priority Delayed_Writeback_Pri = -1
 For some reason "delayed" inter-cluster writebacks are scheduled before regular writebacks (which have default priority). More...
 
static const Priority Default_Pri = 0
 Default is zero for historical reasons. More...
 
static const Priority DVFS_Update_Pri = 31
 DVFS update event leads to stats dump therefore given a lower priority to ensure all relevant states have been updated. More...
 
static const Priority Serialize_Pri = 32
 Serailization needs to occur before tick events also, so that a serialize/unserialize is identical to an on-line CPU switch. More...
 
static const Priority CPU_Tick_Pri = 50
 CPU ticks must come after other associated CPU events (such as writebacks). More...
 
static const Priority CPU_Exit_Pri = 64
 If we want to exit a thread in a CPU, it comes after CPU_Tick_Pri. More...
 
static const Priority Stat_Event_Pri = 90
 Statistics events (dump, reset, etc.) come after everything else, but before exit. More...
 
static const Priority Progress_Event_Pri = 95
 Progress events come at the end. More...
 
static const Priority Sim_Exit_Pri = 100
 If we want to exit on this cycle, it's the very last thing we do. More...
 
static const Priority Maximum_Pri = SCHAR_MAX
 Maximum priority. More...
 

Protected Types

typedef unsigned short FlagsType
 
typedef ::Flags< FlagsTypeFlags
 

Static Protected Attributes

static const FlagsType PublicRead = 0x003f
 
static const FlagsType PublicWrite = 0x001d
 
static const FlagsType Squashed = 0x0001
 
static const FlagsType Scheduled = 0x0002
 
static const FlagsType Managed = 0x0004
 
static const FlagsType AutoDelete = Managed
 
static const FlagsType Reserved0 = 0x0008
 This used to be AutoSerialize. More...
 
static const FlagsType IsExitEvent = 0x0010
 
static const FlagsType IsMainQueue = 0x0020
 
static const FlagsType Initialized = 0x7a40
 
static const FlagsType InitMask = 0xffc0
 

Detailed Description

Common base class for Event and GlobalEvent, so they can share flag and priority definitions and accessor functions.

This class should not be used directly.

Definition at line 91 of file eventq.hh.

Member Typedef Documentation

◆ Flags

typedef ::Flags<FlagsType> EventBase::Flags
protected

Definition at line 95 of file eventq.hh.

◆ FlagsType

typedef unsigned short EventBase::FlagsType
protected

Definition at line 94 of file eventq.hh.

Member Data Documentation

◆ AutoDelete

const FlagsType EventBase::AutoDelete = Managed
staticprotected

◆ Initialized

const FlagsType EventBase::Initialized = 0x7a40
staticprotected

Definition at line 111 of file eventq.hh.

Referenced by Event::initialized().

◆ InitMask

const FlagsType EventBase::InitMask = 0xffc0
staticprotected

Definition at line 112 of file eventq.hh.

Referenced by Event::initialized().

◆ IsExitEvent

const FlagsType EventBase::IsExitEvent = 0x0010
staticprotected

Definition at line 109 of file eventq.hh.

Referenced by Event::isExitEvent().

◆ IsMainQueue

const FlagsType EventBase::IsMainQueue = 0x0020
staticprotected

Definition at line 110 of file eventq.hh.

Referenced by EventQueue::serviceOne().

◆ Managed

const FlagsType EventBase::Managed = 0x0004
staticprotected

◆ PublicRead

const FlagsType EventBase::PublicRead = 0x003f
staticprotected

Definition at line 97 of file eventq.hh.

Referenced by Event::getFlags(), and Event::isFlagSet().

◆ PublicWrite

const FlagsType EventBase::PublicWrite = 0x001d
staticprotected

Definition at line 98 of file eventq.hh.

Referenced by Event::clearFlags(), Event::Event(), and Event::setFlags().

◆ Reserved0

const FlagsType EventBase::Reserved0 = 0x0008
staticprotected

This used to be AutoSerialize.

This value can't be reused without changing the checkpoint version since the flag field gets serialized.

Definition at line 108 of file eventq.hh.

◆ Scheduled

const FlagsType EventBase::Scheduled = 0x0002
staticprotected

◆ Squashed

const FlagsType EventBase::Squashed = 0x0001
staticprotected

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

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