gem5 v24.0.0.0
|
#include <Sequencer.hh>
Public Types | |
typedef RubySequencerParams | Params |
Public Types inherited from gem5::ruby::RubyPort | |
typedef RubyPortParams | Params |
Public Types inherited from gem5::ClockedObject | |
using | Params = ClockedObjectParams |
Parameters of ClockedObject. | |
Public Types inherited from gem5::SimObject | |
typedef SimObjectParams | Params |
Public Member Functions | |
Sequencer (const Params &) | |
~Sequencer () | |
void | writeCallbackScFail (Addr address, DataBlock &data) |
Proxy function to writeCallback that first invalidates the line address in the local monitor. | |
virtual void | wakeup () |
void | resetStats () override |
Callback to reset stats. | |
void | collateStats () |
void | writeCallback (Addr address, DataBlock &data, const bool externalHit=false, const MachineType mach=MachineType_NUM, const Cycles initialRequestTime=Cycles(0), const Cycles forwardRequestTime=Cycles(0), const Cycles firstResponseTime=Cycles(0), const bool noCoales=false) |
void | writeUniqueCallback (Addr address, DataBlock &data) |
void | readCallback (Addr address, DataBlock &data, const bool externalHit=false, const MachineType mach=MachineType_NUM, const Cycles initialRequestTime=Cycles(0), const Cycles forwardRequestTime=Cycles(0), const Cycles firstResponseTime=Cycles(0)) |
void | atomicCallback (Addr address, DataBlock &data, const bool externalHit=false, const MachineType mach=MachineType_NUM, const Cycles initialRequestTime=Cycles(0), const Cycles forwardRequestTime=Cycles(0), const Cycles firstResponseTime=Cycles(0)) |
void | unaddressedCallback (Addr unaddressedReqId, RubyRequestType requestType, const MachineType mach=MachineType_NUM, const Cycles initialRequestTime=Cycles(0), const Cycles forwardRequestTime=Cycles(0), const Cycles firstResponseTime=Cycles(0)) |
void | completeHitCallback (std::vector< PacketPtr > &list) |
void | invL1Callback () |
void | invL1 () |
RequestStatus | makeRequest (PacketPtr pkt) override |
virtual bool | empty () const |
int | outstandingCount () const override |
bool | isDeadlockEventScheduled () const override |
void | descheduleDeadlockEvent () override |
virtual void | print (std::ostream &out) const |
void | markRemoved () |
void | evictionCallback (Addr address) |
int | coreId () const |
virtual int | functionalWrite (Packet *func_pkt) override |
void | recordRequestType (SequencerRequestType requestType) |
statistics::Histogram & | getOutstandReqHist () |
statistics::Histogram & | getLatencyHist () |
statistics::Histogram & | getTypeLatencyHist (uint32_t t) |
statistics::Histogram & | getHitLatencyHist () |
statistics::Histogram & | getHitTypeLatencyHist (uint32_t t) |
statistics::Histogram & | getHitMachLatencyHist (uint32_t t) |
statistics::Histogram & | getHitTypeMachLatencyHist (uint32_t r, uint32_t t) |
statistics::Histogram & | getMissLatencyHist () |
statistics::Histogram & | getMissTypeLatencyHist (uint32_t t) |
statistics::Histogram & | getMissMachLatencyHist (uint32_t t) const |
statistics::Histogram & | getMissTypeMachLatencyHist (uint32_t r, uint32_t t) const |
statistics::Histogram & | getIssueToInitialDelayHist (uint32_t t) const |
statistics::Histogram & | getInitialToForwardDelayHist (const MachineType t) const |
statistics::Histogram & | getForwardRequestToFirstResponseHist (const MachineType t) const |
statistics::Histogram & | getFirstResponseToCompletionDelayHist (const MachineType t) const |
statistics::Counter | getIncompleteTimes (const MachineType t) const |
bool | llscCheckMonitor (const Addr) |
Searches for cache line address in the global monitor tagged with this Sequencer object's version id. | |
void | llscClearLocalMonitor () |
Removes all addresses from the local monitor. | |
Public Member Functions inherited from gem5::ruby::RubyPort | |
RubyPort (const Params &p) | |
virtual | ~RubyPort () |
void | init () override |
init() is called after all C++ SimObjects have been created and all ports are connected. | |
Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) override |
Get a port with a given name and index. | |
void | setController (AbstractController *_cntrl) |
uint32_t | getId () |
DrainState | drain () override |
Draining is the process of clearing out the states of SimObjects.These are the SimObjects that are partially executed or are partially in flight. | |
bool | isCPUSequencer () |
Public Member Functions inherited from gem5::ClockedObject | |
ClockedObject (const ClockedObjectParams &p) | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. | |
Public Member Functions inherited from gem5::SimObject | |
const Params & | params () const |
SimObject (const Params &p) | |
virtual | ~SimObject () |
virtual void | loadState (CheckpointIn &cp) |
loadState() is called on each SimObject when restoring from a checkpoint. | |
virtual void | initState () |
initState() is called on each SimObject when not restoring from a checkpoint. | |
virtual void | regProbePoints () |
Register probe points for this object. | |
virtual void | regProbeListeners () |
Register probe listeners for this object. | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. | |
virtual void | startup () |
startup() is the final initialization call before simulation. | |
DrainState | drain () override |
Provide a default implementation of the drain interface for objects that don't need draining. | |
virtual void | memWriteback () |
Write back dirty buffers to memory using functional writes. | |
virtual void | memInvalidate () |
Invalidate the contents of memory buffers. | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. | |
Public Member Functions inherited from gem5::EventManager | |
EventQueue * | eventQueue () const |
void | schedule (Event &event, Tick when) |
void | deschedule (Event &event) |
void | reschedule (Event &event, Tick when, bool always=false) |
void | schedule (Event *event, Tick when) |
void | deschedule (Event *event) |
void | reschedule (Event *event, Tick when, bool always=false) |
void | wakeupEventQueue (Tick when=(Tick) -1) |
This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers. | |
void | setCurTick (Tick newVal) |
EventManager (EventManager &em) | |
Event manger manages events in the event queue. | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
Public Member Functions inherited from gem5::Serializable | |
Serializable () | |
virtual | ~Serializable () |
void | serializeSection (CheckpointOut &cp, const char *name) const |
Serialize an object into a new section. | |
void | serializeSection (CheckpointOut &cp, const std::string &name) const |
void | unserializeSection (CheckpointIn &cp, const char *name) |
Unserialize an a child object. | |
void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Public Member Functions inherited from gem5::Drainable | |
DrainState | drainState () const |
Return the current drain state of an object. | |
virtual void | notifyFork () |
Notify a child process of a fork. | |
Public Member Functions inherited from gem5::statistics::Group | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. | |
virtual | ~Group () |
virtual void | regStats () |
Callback to set stat parameters. | |
virtual void | preDumpStats () |
Callback before stats are dumped. | |
void | addStat (statistics::Info *info) |
Register a stat with this group. | |
const std::map< std::string, Group * > & | getStatGroups () const |
Get all child groups associated with this object. | |
const std::vector< Info * > & | getStats () const |
Get all stats associated with this object. | |
void | addStatGroup (const char *name, Group *block) |
Add a stat block as a child of this block. | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. | |
void | mergeStatGroup (Group *block) |
Merge the contents (stats & children) of a block to this block. | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
Public Member Functions inherited from gem5::Named | |
Named (const std::string &name_) | |
virtual | ~Named ()=default |
virtual std::string | name () const |
Public Member Functions inherited from gem5::Clocked | |
void | updateClockPeriod () |
Update the tick to the current tick. | |
Tick | clockEdge (Cycles cycles=Cycles(0)) const |
Determine the tick when a cycle begins, by default the current one, but the argument also enables the caller to determine a future cycle. | |
Cycles | curCycle () const |
Determine the current cycle, corresponding to a tick aligned to a clock edge. | |
Tick | nextCycle () const |
Based on the clock of the object, determine the start tick of the first cycle that is at least one cycle in the future. | |
uint64_t | frequency () const |
Tick | clockPeriod () const |
double | voltage () const |
Cycles | ticksToCycles (Tick t) const |
Tick | cyclesToTicks (Cycles c) const |
Protected Member Functions | |
virtual RequestStatus | insertRequest (PacketPtr pkt, RubyRequestType primary_type, RubyRequestType secondary_type) |
Protected Member Functions inherited from gem5::ruby::RubyPort | |
void | trySendRetries () |
void | ruby_hit_callback (PacketPtr pkt) |
void | ruby_unaddressed_callback (PacketPtr pkt) |
void | ruby_stale_translation_callback (Addr txnId) |
void | testDrainComplete () |
void | ruby_eviction_callback (Addr address) |
bool | recvTimingResp (PacketPtr pkt, PortID request_port_id) |
Called by the PIO port when receiving a timing response. | |
Protected Member Functions inherited from gem5::Drainable | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. | |
void | signalDrainDone () const |
Signal that an object is drained. | |
Protected Member Functions inherited from gem5::Clocked | |
Clocked (ClockDomain &clk_domain) | |
Create a clocked object and set the clock domain based on the parameters. | |
Clocked (Clocked &)=delete | |
Clocked & | operator= (Clocked &)=delete |
virtual | ~Clocked () |
Virtual destructor due to inheritance. | |
void | resetClock () const |
Reset the object's clock using the current global tick value. | |
virtual void | clockPeriodUpdated () |
A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed. | |
Protected Attributes | |
std::unordered_map< Addr, std::list< SequencerRequest > > | m_RequestTable |
std::unordered_map< uint64_t, SequencerRequest > | m_UnaddressedRequestTable |
Cycles | m_deadlock_threshold |
Protected Attributes inherited from gem5::ruby::RubyPort | |
RubySystem * | m_ruby_system |
uint32_t | m_version |
AbstractController * | m_controller |
MessageBuffer * | m_mandatory_q_ptr |
bool | m_usingRubyTester |
System * | system |
std::vector< MemResponsePort * > | response_ports |
Protected Attributes inherited from gem5::SimObject | |
const SimObjectParams & | _params |
Cached copy of the object parameters. | |
Protected Attributes inherited from gem5::EventManager | |
EventQueue * | eventq |
A pointer to this object's event queue. | |
Private Member Functions | |
void | issueRequest (PacketPtr pkt, RubyRequestType type) |
void | hitCallback (SequencerRequest *srequest, DataBlock &data, bool llscSuccess, const MachineType mach, const bool externalHit, const Cycles initialRequestTime, const Cycles forwardRequestTime, const Cycles firstResponseTime, const bool was_coalesced) |
void | recordMissLatency (SequencerRequest *srequest, bool llscSuccess, const MachineType respondingMach, bool isExternalHit, Cycles initialRequestTime, Cycles forwardRequestTime, Cycles firstResponseTime) |
Sequencer (const Sequencer &obj) | |
Sequencer & | operator= (const Sequencer &obj) |
void | llscLoadLinked (const Addr) |
Places the cache line address into the global monitor tagged with this Sequencer object's version id. | |
void | llscClearMonitor (const Addr) |
Removes the cache line address from the global monitor. | |
bool | llscStoreConditional (const Addr) |
Searches for cache line address in the global monitor tagged with this Sequencer object's version id. | |
void | incrementUnaddressedTransactionCnt () |
Increment the unaddressed transaction counter. | |
uint64_t | getCurrentUnaddressedTransactionID () const |
Generate the current unaddressed transaction ID based on the counter and the Sequencer object's version id. | |
Additional Inherited Members | |
Static Public Member Functions inherited from gem5::SimObject | |
static void | serializeAll (const std::string &cpt_dir) |
Create a checkpoint by serializing all SimObjects in the system. | |
static SimObject * | find (const char *name) |
Find the SimObject with the given name and return a pointer to it. | |
static void | setSimObjectResolver (SimObjectResolver *resolver) |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. | |
static SimObjectResolver * | getSimObjectResolver () |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. | |
Static Public Member Functions inherited from gem5::Serializable | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. | |
static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
Generate a checkpoint file so that the serialization can be routed to it. | |
Public Attributes inherited from gem5::ClockedObject | |
PowerState * | powerState |
Definition at line 86 of file Sequencer.hh.
typedef RubySequencerParams gem5::ruby::Sequencer::Params |
Definition at line 89 of file Sequencer.hh.
gem5::ruby::Sequencer::Sequencer | ( | const Params & | p | ) |
Definition at line 70 of file Sequencer.cc.
References wakeup().
gem5::ruby::Sequencer::~Sequencer | ( | ) |
Definition at line 150 of file Sequencer.cc.
|
private |
void gem5::ruby::Sequencer::atomicCallback | ( | Addr | address, |
DataBlock & | data, | ||
const bool | externalHit = false, | ||
const MachineType | mach = MachineType_NUM, | ||
const Cycles | initialRequestTime = Cycles(0), | ||
const Cycles | forwardRequestTime = Cycles(0), | ||
const Cycles | firstResponseTime = Cycles(0) ) |
Definition at line 616 of file Sequencer.cc.
References data, hitCallback(), issueRequest(), llscClearMonitor(), m_RequestTable, gem5::ruby::SequencerRequest::m_second_type, gem5::ruby::SequencerRequest::m_type, gem5::ruby::makeLineAddress(), markRemoved(), gem5::ruby::SequencerRequest::pkt, and recordMissLatency().
void gem5::ruby::Sequencer::collateStats | ( | ) |
void gem5::ruby::Sequencer::completeHitCallback | ( | std::vector< PacketPtr > & | list | ) |
Definition at line 827 of file Sequencer.cc.
References gem5::ruby::CacheRecorder::enqueueNextFetchRequest(), gem5::ruby::RubySystem::getCooldownEnabled(), gem5::ruby::RubySystem::getWarmupEnabled(), gem5::ruby::RubyPort::MemResponsePort::hitCallback(), gem5::ruby::RubySystem::m_cache_recorder, gem5::ruby::RubyPort::m_ruby_system, gem5::ArmISA::rs, gem5::safe_cast(), gem5::ArmISA::ss, gem5::ruby::RubyPort::testDrainComplete(), gem5::ruby::RubyPort::trySendRetries(), and gem5::MemCmd::WriteReq.
Referenced by invL1Callback().
|
inline |
|
inlineoverridevirtual |
Implements gem5::ruby::RubyPort.
Definition at line 155 of file Sequencer.hh.
References deadlockCheckEvent, and gem5::EventManager::deschedule().
|
virtual |
Reimplemented in gem5::ruby::HTMSequencer.
Definition at line 907 of file Sequencer.cc.
References m_RequestTable, and m_UnaddressedRequestTable.
Referenced by gem5::ruby::HTMSequencer::empty().
void gem5::ruby::Sequencer::evictionCallback | ( | Addr | address | ) |
Definition at line 1160 of file Sequencer.cc.
References llscClearMonitor(), and gem5::ruby::RubyPort::ruby_eviction_callback().
|
overridevirtual |
Reimplemented from gem5::ruby::RubyPort.
Definition at line 262 of file Sequencer.cc.
References gem5::ruby::RubyPort::functionalWrite(), and m_RequestTable.
|
private |
Generate the current unaddressed transaction ID based on the counter and the Sequencer object's version id.
Definition at line 1181 of file Sequencer.cc.
References gem5::ruby::RubySystem::getBlockSizeBits(), m_unaddressedTransactionCnt, and gem5::ruby::RubyPort::m_version.
Referenced by insertRequest().
|
inline |
Definition at line 207 of file Sequencer.hh.
References m_FirstResponseToCompletionDelayHist, and gem5::ArmISA::t.
|
inline |
Definition at line 203 of file Sequencer.hh.
References m_ForwardToFirstResponseDelayHist, and gem5::ArmISA::t.
|
inline |
Definition at line 173 of file Sequencer.hh.
References m_hitLatencyHist.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 177 of file Sequencer.hh.
References m_hitMachLatencyHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 174 of file Sequencer.hh.
References m_hitTypeLatencyHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 180 of file Sequencer.hh.
References m_hitTypeMachLatencyHist, gem5::MipsISA::r, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 210 of file Sequencer.hh.
References m_IncompleteTimes, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 199 of file Sequencer.hh.
References m_InitialToForwardDelayHist, and gem5::ArmISA::t.
|
inline |
Definition at line 195 of file Sequencer.hh.
References m_IssueToInitialDelayHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 169 of file Sequencer.hh.
References m_latencyHist.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 183 of file Sequencer.hh.
References m_missLatencyHist.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 188 of file Sequencer.hh.
References m_missMachLatencyHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 185 of file Sequencer.hh.
References m_missTypeLatencyHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 192 of file Sequencer.hh.
References m_missTypeMachLatencyHist, gem5::MipsISA::r, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 167 of file Sequencer.hh.
References m_outstandReqHist.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 170 of file Sequencer.hh.
References m_typeLatencyHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
private |
Definition at line 672 of file Sequencer.cc.
References gem5::Packet::cmdString(), data, DPRINTF, gem5::Packet::findNextSenderState(), gem5::Packet::getAddr(), gem5::Packet::getAtomicOp(), gem5::ruby::RubySystem::getCooldownEnabled(), gem5::ruby::getOffset(), gem5::Packet::getSize(), gem5::ruby::RubySystem::getWarmupEnabled(), gem5::Packet::isAtomicOp(), gem5::Packet::isFlush(), gem5::Packet::isMaskedWrite(), llscLoadLinked(), gem5::ruby::RubyPort::m_controller, gem5::ruby::RubyPort::m_ruby_system, gem5::ruby::SequencerRequest::m_type, gem5::ruby::RubyPort::m_usingRubyTester, gem5::ruby::makeLineAddress(), gem5::ruby::SubBlock::mergeFrom(), gem5::ruby::AbstractController::notifyCoalesced(), gem5::ruby::SequencerRequest::pkt, gem5::ruby::printAddress(), gem5::Packet::req, gem5::ArmISA::rs, gem5::ruby::RubyPort::ruby_hit_callback(), gem5::Packet::setData(), gem5::RubyTester::SenderState::subBlock, gem5::ruby::RubyPort::testDrainComplete(), gem5::X86ISA::type, warn_once, and gem5::Packet::writeData().
Referenced by atomicCallback(), readCallback(), and writeCallback().
|
private |
Increment the unaddressed transaction counter.
Definition at line 1167 of file Sequencer.cc.
References gem5::ruby::RubySystem::getBlockSizeBits(), and m_unaddressedTransactionCnt.
Referenced by insertRequest().
|
protectedvirtual |
Reimplemented in gem5::ruby::HTMSequencer.
Definition at line 308 of file Sequencer.cc.
References gem5::Clocked::clockEdge(), gem5::Packet::cmd, gem5::Clocked::curCycle(), deadlockCheckEvent, DPRINTF, gem5::Draining, gem5::Drainable::drainState(), gem5::Packet::getAddr(), getCurrentUnaddressedTransactionID(), incrementUnaddressedTransactionCnt(), gem5::ruby::isTlbiCmdRequest(), m_deadlock_threshold, m_outstanding_count, m_outstandReqHist, m_RequestTable, m_UnaddressedRequestTable, gem5::ruby::makeLineAddress(), gem5::MemCmd::MemSyncReq, panic, gem5::statistics::DistBase< Derived, Stor >::sample(), gem5::EventManager::schedule(), and gem5::Event::scheduled().
Referenced by gem5::ruby::HTMSequencer::insertRequest(), and makeRequest().
void gem5::ruby::Sequencer::invL1 | ( | ) |
Definition at line 879 of file Sequencer.cc.
References gem5::X86ISA::addr, gem5::Clocked::clockEdge(), gem5::Clocked::cyclesToTicks(), DPRINTF, gem5::ruby::MessageBuffer::enqueue(), gem5::ruby::CacheMemory::getAddressAtIdx(), gem5::ruby::CacheMemory::getNumBlocks(), gem5::ArmISA::i, gem5::ruby::RubyPort::m_controller, m_dataCache_ptr, gem5::ruby::RubyPort::m_mandatory_q_ptr, m_num_pending_invs, and gem5::ruby::AbstractController::mandatoryQueueLatency().
Referenced by makeRequest().
void gem5::ruby::Sequencer::invL1Callback | ( | ) |
Definition at line 864 of file Sequencer.cc.
References completeHitCallback(), m_cache_inv_pkt, and m_num_pending_invs.
|
inlineoverridevirtual |
Implements gem5::ruby::RubyPort.
Definition at line 152 of file Sequencer.hh.
References deadlockCheckEvent, and gem5::Event::scheduled().
|
private |
Definition at line 1045 of file Sequencer.cc.
References gem5::Clocked::clockEdge(), coreId(), gem5::curTick(), gem5::Clocked::cyclesToTicks(), DPRINTF, DPRINTFR, gem5::ruby::MessageBuffer::enqueue(), gem5::Packet::getAddr(), gem5::Packet::getAtomicOp(), gem5::Packet::getHtmTransactionUid(), gem5::ruby::getOffset(), gem5::Packet::getSize(), gem5::InvalidContextID, gem5::Packet::isAtomicOp(), gem5::Packet::isHtmTransactional(), gem5::ruby::RubyPort::m_controller, gem5::ruby::RubyPort::m_mandatory_q_ptr, gem5::ruby::RubyPort::m_version, gem5::ruby::AbstractController::mandatoryQueueLatency(), gem5::ArmISA::offset, panic, gem5::MipsISA::pc, gem5::ruby::printAddress(), and gem5::Packet::req.
Referenced by atomicCallback(), makeRequest(), readCallback(), and writeCallback().
bool gem5::ruby::Sequencer::llscCheckMonitor | ( | const Addr | address | ) |
Searches for cache line address in the global monitor tagged with this Sequencer object's version id.
Definition at line 205 of file Sequencer.cc.
References gem5::ruby::AbstractCacheEntry::isLocked(), gem5::ruby::CacheMemory::lookup(), m_dataCache_ptr, gem5::ruby::RubyPort::m_version, and gem5::ruby::makeLineAddress().
void gem5::ruby::Sequencer::llscClearLocalMonitor | ( | ) |
Removes all addresses from the local monitor.
This is independent of this Sequencer object's version id.
Definition at line 221 of file Sequencer.cc.
References gem5::ruby::CacheMemory::clearLockedAll(), m_dataCache_ptr, and gem5::ruby::RubyPort::m_version.
|
private |
Removes the cache line address from the global monitor.
This is independent of this Sequencer object's version id.
Definition at line 168 of file Sequencer.cc.
References gem5::ruby::AbstractCacheEntry::clearLocked(), DPRINTF, gem5::ruby::AbstractCacheEntry::isLocked(), gem5::ruby::CacheMemory::lookup(), m_dataCache_ptr, and gem5::ruby::RubyPort::m_version.
Referenced by atomicCallback(), evictionCallback(), writeCallback(), and writeCallbackScFail().
|
private |
Places the cache line address into the global monitor tagged with this Sequencer object's version id.
Definition at line 155 of file Sequencer.cc.
References DPRINTF, fatal_if, gem5::ruby::CacheMemory::lookup(), m_dataCache_ptr, gem5::ruby::RubyPort::m_version, gem5::Named::name(), and gem5::ruby::AbstractCacheEntry::setLocked().
Referenced by hitCallback().
|
private |
Searches for cache line address in the global monitor tagged with this Sequencer object's version id.
If a match is found, the entry is is erased from the global monitor.
Definition at line 182 of file Sequencer.cc.
References gem5::ruby::AbstractCacheEntry::clearLocked(), DPRINTF, fatal_if, gem5::ruby::AbstractCacheEntry::isLocked(), gem5::ruby::CacheMemory::lookup(), m_dataCache_ptr, gem5::ruby::RubyPort::m_version, and gem5::Named::name().
Referenced by writeCallback().
|
overridevirtual |
Implements gem5::ruby::RubyPort.
Definition at line 914 of file Sequencer.cc.
References gem5::Packet::cmd, DPRINTF, gem5::Packet::getAddr(), gem5::ruby::htmCmdToRubyRequestType(), insertRequest(), invL1(), gem5::Packet::isAtomicOp(), gem5::ruby::AbstractController::isBlocked(), gem5::Packet::isFlush(), gem5::Packet::isLLSC(), gem5::Packet::isRead(), issueRequest(), gem5::Packet::isWrite(), m_cache_inv_pkt, gem5::ruby::RubyPort::m_controller, m_max_outstanding_requests, m_outstanding_count, gem5::ruby::makeLineAddress(), gem5::MemCmd::MemSyncReq, panic, gem5::Packet::req, gem5::ArmISA::status, and gem5::ruby::tlbiCmdToRubyRequestType().
void gem5::ruby::Sequencer::markRemoved | ( | ) |
Definition at line 380 of file Sequencer.cc.
References m_outstanding_count.
Referenced by atomicCallback(), gem5::ruby::HTMSequencer::htmCallback(), readCallback(), and writeCallback().
|
inlineoverridevirtual |
Implements gem5::ruby::RubyPort.
Definition at line 150 of file Sequencer.hh.
References m_outstanding_count.
|
virtual |
Reimplemented in gem5::ruby::HTMSequencer.
Definition at line 1145 of file Sequencer.cc.
References m_outstanding_count, m_RequestTable, and gem5::ruby::RubyPort::m_version.
Referenced by gem5::ruby::operator<<(), and gem5::ruby::HTMSequencer::print().
void gem5::ruby::Sequencer::readCallback | ( | Addr | address, |
DataBlock & | data, | ||
const bool | externalHit = false, | ||
const MachineType | mach = MachineType_NUM, | ||
const Cycles | initialRequestTime = Cycles(0), | ||
const Cycles | forwardRequestTime = Cycles(0), | ||
const Cycles | firstResponseTime = Cycles(0) ) |
Definition at line 563 of file Sequencer.cc.
References data, hitCallback(), issueRequest(), m_RequestTable, gem5::ruby::SequencerRequest::m_second_type, gem5::ruby::SequencerRequest::m_type, gem5::ruby::makeLineAddress(), markRemoved(), gem5::ruby::SequencerRequest::pkt, and recordMissLatency().
|
private |
Definition at line 386 of file Sequencer.cc.
References gem5::Clocked::curCycle(), gem5::curTick(), DPRINTFR, gem5::Packet::getAddr(), gem5::ruby::SequencerRequest::issue_time, m_FirstResponseToCompletionDelayHist, m_ForwardToFirstResponseDelayHist, m_hitLatencyHist, m_hitMachLatencyHist, m_hitTypeLatencyHist, m_hitTypeMachLatencyHist, m_IncompleteTimes, m_InitialToForwardDelayHist, m_IssueToInitialDelayHist, m_latencyHist, m_missLatencyHist, m_missMachLatencyHist, m_missTypeLatencyHist, m_missTypeMachLatencyHist, gem5::ruby::SequencerRequest::m_type, m_typeLatencyHist, gem5::ruby::RubyPort::m_version, gem5::ruby::SequencerRequest::pkt, gem5::ruby::printAddress(), gem5::statistics::DistBase< Derived, Stor >::sample(), and gem5::X86ISA::type.
Referenced by atomicCallback(), readCallback(), and writeCallback().
void gem5::ruby::Sequencer::recordRequestType | ( | SequencerRequestType | requestType | ) |
Definition at line 1154 of file Sequencer.cc.
References DPRINTF.
|
overridevirtual |
Callback to reset stats.
Reimplemented from gem5::statistics::Group.
Definition at line 276 of file Sequencer.cc.
References gem5::ArmISA::i, m_FirstResponseToCompletionDelayHist, m_ForwardToFirstResponseDelayHist, m_hitLatencyHist, m_hitMachLatencyHist, m_hitTypeLatencyHist, m_hitTypeMachLatencyHist, m_IncompleteTimes, m_InitialToForwardDelayHist, m_IssueToInitialDelayHist, m_latencyHist, m_missLatencyHist, m_missMachLatencyHist, m_missTypeLatencyHist, m_missTypeMachLatencyHist, m_outstandReqHist, m_typeLatencyHist, and gem5::statistics::DistBase< Derived, Stor >::reset().
void gem5::ruby::Sequencer::unaddressedCallback | ( | Addr | unaddressedReqId, |
RubyRequestType | requestType, | ||
const MachineType | mach = MachineType_NUM, | ||
const Cycles | initialRequestTime = Cycles(0), | ||
const Cycles | forwardRequestTime = Cycles(0), | ||
const Cycles | firstResponseTime = Cycles(0) ) |
Definition at line 777 of file Sequencer.cc.
References DPRINTF, gem5::ruby::SequencerRequest::m_type, m_UnaddressedRequestTable, panic, gem5::ruby::SequencerRequest::pkt, gem5::ruby::RubyPort::ruby_stale_translation_callback(), gem5::ruby::RubyPort::ruby_unaddressed_callback(), and gem5::ruby::RubyPort::testDrainComplete().
|
virtual |
Reimplemented in gem5::ruby::HTMSequencer.
Definition at line 227 of file Sequencer.cc.
References gem5::Clocked::clockEdge(), gem5::Clocked::clockPeriod(), gem5::Clocked::curCycle(), deadlockCheckEvent, gem5::Draining, gem5::Drainable::drainState(), m_deadlock_threshold, m_outstanding_count, m_RequestTable, gem5::ruby::RubyPort::m_version, panic, and gem5::EventManager::schedule().
Referenced by Sequencer(), and gem5::ruby::HTMSequencer::wakeup().
void gem5::ruby::Sequencer::writeCallback | ( | Addr | address, |
DataBlock & | data, | ||
const bool | externalHit = false, | ||
const MachineType | mach = MachineType_NUM, | ||
const Cycles | initialRequestTime = Cycles(0), | ||
const Cycles | forwardRequestTime = Cycles(0), | ||
const Cycles | firstResponseTime = Cycles(0), | ||
const bool | noCoales = false ) |
Definition at line 459 of file Sequencer.cc.
References gem5::ruby::AbstractController::blockOnQueue(), data, hitCallback(), issueRequest(), llscClearMonitor(), llscStoreConditional(), gem5::ruby::RubyPort::m_controller, gem5::ruby::RubyPort::m_mandatory_q_ptr, m_RequestTable, gem5::ruby::SequencerRequest::m_second_type, gem5::ruby::SequencerRequest::m_type, gem5::ruby::makeLineAddress(), markRemoved(), gem5::ruby::SequencerRequest::pkt, recordMissLatency(), gem5::Packet::req, and gem5::ruby::AbstractController::unblock().
Referenced by writeCallbackScFail(), and writeUniqueCallback().
Proxy function to writeCallback that first invalidates the line address in the local monitor.
Definition at line 452 of file Sequencer.cc.
References data, llscClearMonitor(), and writeCallback().
Definition at line 115 of file Sequencer.hh.
References data, and writeCallback().
|
private |
Definition at line 308 of file Sequencer.hh.
Referenced by descheduleDeadlockEvent(), insertRequest(), isDeadlockEventScheduled(), and wakeup().
|
private |
Definition at line 252 of file Sequencer.hh.
Referenced by invL1Callback(), and makeRequest().
|
private |
Definition at line 267 of file Sequencer.hh.
Referenced by coreId().
|
private |
Definition at line 260 of file Sequencer.hh.
|
private |
Definition at line 254 of file Sequencer.hh.
Referenced by invL1(), llscCheckMonitor(), llscClearLocalMonitor(), llscClearMonitor(), llscLoadLinked(), and llscStoreConditional().
|
private |
Definition at line 265 of file Sequencer.hh.
|
protected |
Definition at line 241 of file Sequencer.hh.
Referenced by insertRequest(), gem5::ruby::HTMSequencer::wakeup(), and wakeup().
|
private |
Definition at line 305 of file Sequencer.hh.
Referenced by getFirstResponseToCompletionDelayHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 304 of file Sequencer.hh.
Referenced by getForwardRequestToFirstResponseHist(), recordMissLatency(), and resetStats().
|
private |
Histogram for holding latency profile of all requests that hit in the controller connected to this sequencer.
Definition at line 282 of file Sequencer.hh.
Referenced by getHitLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Histograms for profiling the latencies for requests that did not required external messages.
Definition at line 287 of file Sequencer.hh.
Referenced by getHitMachLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 283 of file Sequencer.hh.
Referenced by getHitTypeLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 288 of file Sequencer.hh.
Referenced by getHitTypeMachLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 306 of file Sequencer.hh.
Referenced by getIncompleteTimes(), recordMissLatency(), and resetStats().
|
private |
Definition at line 303 of file Sequencer.hh.
Referenced by getInitialToForwardDelayHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 261 of file Sequencer.hh.
|
private |
Histograms for recording the breakdown of miss latency.
Definition at line 302 of file Sequencer.hh.
Referenced by getIssueToInitialDelayHist(), recordMissLatency(), and resetStats().
|
private |
Histogram for holding latency profile of all requests.
Definition at line 277 of file Sequencer.hh.
Referenced by getLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 248 of file Sequencer.hh.
Referenced by makeRequest().
|
private |
Histogram for holding latency profile of all requests that miss in the controller connected to this sequencer.
Definition at line 292 of file Sequencer.hh.
Referenced by getMissLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Histograms for profiling the latencies for requests that required external messages.
Definition at line 297 of file Sequencer.hh.
Referenced by getMissMachLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 293 of file Sequencer.hh.
Referenced by getMissTypeLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 299 of file Sequencer.hh.
Referenced by getMissTypeMachLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 250 of file Sequencer.hh.
Referenced by invL1(), and invL1Callback().
|
private |
Definition at line 264 of file Sequencer.hh.
Referenced by insertRequest(), makeRequest(), markRemoved(), outstandingCount(), print(), and wakeup().
|
private |
Histogram for number of outstanding requests per cycle.
Definition at line 274 of file Sequencer.hh.
Referenced by getOutstandReqHist(), insertRequest(), and resetStats().
|
protected |
Definition at line 236 of file Sequencer.hh.
Referenced by atomicCallback(), empty(), functionalWrite(), gem5::ruby::HTMSequencer::htmCallback(), insertRequest(), print(), readCallback(), wakeup(), and writeCallback().
|
private |
Definition at line 271 of file Sequencer.hh.
|
private |
Definition at line 278 of file Sequencer.hh.
Referenced by getTypeLatencyHist(), recordMissLatency(), and resetStats().
|
protected |
Definition at line 239 of file Sequencer.hh.
Referenced by empty(), insertRequest(), and unaddressedCallback().
|
private |
Definition at line 269 of file Sequencer.hh.
Referenced by getCurrentUnaddressedTransactionID(), and incrementUnaddressedTransactionCnt().