gem5 v24.0.0.0
|
#include <AbstractController.hh>
Classes | |
struct | ControllerStats |
class | MemoryPort |
Port that forwards requests and receives responses from the memory controller. More... | |
struct | SenderState |
struct | TransMapPair |
Public Member Functions | |
PARAMS (RubyController) | |
AbstractController (const Params &p) | |
void | init () |
init() is called after all C++ SimObjects have been created and all ports are connected. | |
NodeID | getVersion () const |
MachineType | getType () const |
void | initNetworkPtr (Network *net_ptr) |
void | blockOnQueue (Addr, MessageBuffer *) |
bool | isBlocked (Addr) const |
void | unblock (Addr) |
bool | isBlocked (Addr) |
virtual MessageBuffer * | getMandatoryQueue () const =0 |
virtual MessageBuffer * | getMemReqQueue () const =0 |
virtual MessageBuffer * | getMemRespQueue () const =0 |
void | memRespQueueDequeued () |
void | dequeueMemRespQueue () |
virtual AccessPermission | getAccessPermission (const Addr &addr)=0 |
virtual void | print (std::ostream &out) const =0 |
virtual void | wakeup ()=0 |
virtual void | resetStats ()=0 |
Callback to reset stats. | |
virtual void | regStats () |
Callback to set stat parameters. | |
virtual void | recordCacheTrace (int cntrl, CacheRecorder *tr)=0 |
virtual Sequencer * | getCPUSequencer () const =0 |
virtual DMASequencer * | getDMASequencer () const =0 |
virtual GPUCoalescer * | getGPUCoalescer () const =0 |
virtual Cycles | mandatoryQueueLatency (const RubyRequestType ¶m_type) |
virtual bool | functionalReadBuffers (PacketPtr &)=0 |
These functions are used by ruby system to read/write the data blocks that exist with in the controller. | |
virtual void | functionalRead (const Addr &addr, PacketPtr) |
virtual bool | functionalReadBuffers (PacketPtr &, WriteMask &mask)=0 |
Functional read that reads only blocks not present in the mask. | |
virtual void | functionalRead (const Addr &addr, PacketPtr pkt, WriteMask &mask) |
void | functionalMemoryRead (PacketPtr) |
virtual int | functionalWriteBuffers (PacketPtr &)=0 |
The return value indicates the number of messages written with the data from the packet. | |
virtual int | functionalWrite (const Addr &addr, PacketPtr)=0 |
int | functionalMemoryWrite (PacketPtr) |
virtual void | enqueuePrefetch (const Addr &, const RubyRequestType &) |
Function for enqueuing a prefetch request. | |
virtual void | notifyCoalesced (const Addr &addr, const RubyRequestType &type, const RequestPtr &req, const DataBlock &data_blk, const bool &was_miss) |
Notifies controller of a request coalesced at the sequencer. | |
virtual void | collateStats () |
Function for collating statistics from all the controllers of this particular type. | |
virtual void | initNetQueues ()=0 |
Initialize the message buffers. | |
Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) |
A function used to return the port associated with this bus object. | |
bool | recvTimingResp (PacketPtr pkt) |
Tick | recvAtomic (PacketPtr pkt) |
const AddrRangeList & | getAddrRanges () const |
MachineID | getMachineID () const |
RequestorID | getRequestorId () const |
statistics::Histogram & | getDelayHist () |
statistics::Histogram & | getDelayVCHist (uint32_t index) |
bool | respondsTo (Addr addr) |
MachineID | mapAddressToMachine (Addr addr, MachineType mtype) const |
Map an address to the correct MachineID. | |
MachineID | mapAddressToDownstreamMachine (Addr addr, MachineType mtype=MachineType_NUM) const |
Maps an address to the correct dowstream MachineID (i.e. | |
const NetDest & | allDownstreamDest () const |
List of downstream destinations (towards memory) | |
const NetDest & | allUpstreamDest () const |
List of upstream destinations (towards the CPU) | |
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 | 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 |
Public Member Functions inherited from gem5::ruby::Consumer | |
Consumer (ClockedObject *em, Event::Priority ev_prio=Event::Default_Pri) | |
virtual | ~Consumer () |
virtual void | storeEventInfo (int info) |
bool | alreadyScheduled (Tick time) |
ClockedObject * | getObject () |
void | scheduleEventAbsolute (Tick timeAbs) |
void | scheduleEvent (Cycles timeDelta) |
Public Attributes | |
gem5::ruby::AbstractController::ControllerStats | stats |
Public Attributes inherited from gem5::ClockedObject | |
PowerState * | powerState |
Protected Types | |
typedef std::vector< MessageBuffer * > | MsgVecType |
typedef std::set< MessageBuffer * > | MsgBufType |
typedef std::map< Addr, MsgVecType * > | WaitingBufType |
Protected Member Functions | |
void | profileRequest (const std::string &request) |
Profiles original cache requests including PUTs. | |
void | profileMsgDelay (uint32_t virtualNetwork, Cycles delay) |
Profiles the delay associated with messages. | |
template<typename EventType , typename StateType > | |
void | incomingTransactionStart (Addr addr, EventType type, StateType initialState, bool retried, bool isAddressed=true) |
Profiles an event that initiates a protocol transactions for a specific line (e.g. | |
template<typename StateType > | |
void | incomingTransactionEnd (Addr addr, StateType finalState, bool isAddressed=true) |
Profiles an event that ends a transaction. | |
template<typename EventType > | |
void | outgoingTransactionStart (Addr addr, EventType type, bool isAddressed=true) |
Profiles an event that initiates a transaction in a peer controller (e.g. | |
void | outgoingTransactionEnd (Addr addr, bool retried, bool isAddressed=true) |
Profiles the end of an outgoing transaction. | |
void | stallBuffer (MessageBuffer *buf, Addr addr) |
void | wakeUpBuffer (MessageBuffer *buf, Addr addr) |
void | wakeUpBuffers (Addr addr) |
void | wakeUpAllBuffers (Addr addr) |
void | wakeUpAllBuffers () |
bool | serviceMemoryQueue () |
virtual bool | inCache (const Addr &addr, const bool &is_secure) |
Functions needed by CacheAccessor. | |
virtual bool | hasBeenPrefetched (const Addr &addr, const bool &is_secure) |
virtual bool | hasBeenPrefetched (const Addr &addr, const bool &is_secure, const RequestorID &requestor) |
virtual bool | inMissQueue (const Addr &addr, const bool &is_secure) |
virtual bool | coalesce () |
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. | |
Private Member Functions | |
void | sendRetryRespToMem () |
Private Attributes | |
const AddrRangeList | addrRanges |
The address range to which the controller responds on the CPU side. | |
std::unordered_map< MachineType, AddrRangeMap< MachineID, 3 > > | downstreamAddrMap |
NetDest | downstreamDestinations |
NetDest | upstreamDestinations |
MemberEventWrapper<&AbstractController::sendRetryRespToMem > | mRetryRespEvent |
Friends | |
class | RubyPrefetcherProxy |
Additional Inherited Members | |
Public Types inherited from gem5::ClockedObject | |
using | Params = ClockedObjectParams |
Parameters of ClockedObject. | |
Public Types inherited from gem5::SimObject | |
typedef SimObjectParams | Params |
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. | |
Definition at line 83 of file AbstractController.hh.
|
protected |
Definition at line 405 of file AbstractController.hh.
|
protected |
Definition at line 404 of file AbstractController.hh.
|
protected |
Definition at line 406 of file AbstractController.hh.
gem5::ruby::AbstractController::AbstractController | ( | const Params & | p | ) |
Definition at line 56 of file AbstractController.cc.
References collateStats(), m_version, and gem5::statistics::registerDumpCallback().
|
inline |
List of downstream destinations (towards memory)
Definition at line 227 of file AbstractController.hh.
References downstreamDestinations.
|
inline |
List of upstream destinations (towards the CPU)
Definition at line 230 of file AbstractController.hh.
References upstreamDestinations.
void gem5::ruby::AbstractController::blockOnQueue | ( | Addr | addr, |
MessageBuffer * | port ) |
Definition at line 321 of file AbstractController.cc.
References gem5::X86ISA::addr, m_block_map, and m_is_blocking.
Referenced by gem5::ruby::Sequencer::writeCallback().
|
inlineprotectedvirtual |
Definition at line 387 of file AbstractController.hh.
References fatal.
Referenced by gem5::ruby::RubyPrefetcherProxy::coalesce().
|
inlinevirtual |
Function for collating statistics from all the controllers of this particular type.
This function should only be called from the version 0 of this controller type.
Definition at line 167 of file AbstractController.hh.
References fatal.
Referenced by AbstractController().
void gem5::ruby::AbstractController::dequeueMemRespQueue | ( | ) |
Definition at line 459 of file AbstractController.cc.
References gem5::Clocked::clockEdge(), gem5_assert, getMemRespQueue(), memRespQueueDequeued(), and gem5::ArmISA::q.
|
inlinevirtual |
Function for enqueuing a prefetch request.
Definition at line 152 of file AbstractController.hh.
References fatal.
Referenced by gem5::ruby::RubyPrefetcher::initializeStream(), and gem5::ruby::RubyPrefetcher::issueNextPrefetch().
void gem5::ruby::AbstractController::functionalMemoryRead | ( | PacketPtr | pkt | ) |
Definition at line 355 of file AbstractController.cc.
References gem5::ruby::MessageBuffer::functionalRead(), getMemReqQueue(), memoryPort, and gem5::RequestPort::sendFunctional().
int gem5::ruby::AbstractController::functionalMemoryWrite | ( | PacketPtr | pkt | ) |
Definition at line 364 of file AbstractController.cc.
References memoryPort, and gem5::RequestPort::sendFunctional().
|
inlinevirtual |
Definition at line 140 of file AbstractController.hh.
References panic.
|
inlinevirtual |
Definition at line 134 of file AbstractController.hh.
References panic.
Referenced by gem5::ruby::RubySystem::functionalRead().
|
pure virtual |
These functions are used by ruby system to read/write the data blocks that exist with in the controller.
|
pure virtual |
Functional read that reads only blocks not present in the mask.
Return number of bytes read.
|
pure virtual |
|
pure virtual |
The return value indicates the number of messages written with the data from the packet.
|
pure virtual |
|
inline |
Definition at line 180 of file AbstractController.hh.
References addrRanges.
Referenced by gem5::ruby::Network::Network().
|
pure virtual |
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 186 of file AbstractController.hh.
References gem5::ruby::AbstractController::ControllerStats::delayHistogram, and stats.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 187 of file AbstractController.hh.
References gem5::ruby::AbstractController::ControllerStats::delayVCHistogram, gem5::MipsISA::index, and stats.
Referenced by gem5::ruby::Profiler::collateStats().
|
pure virtual |
|
pure virtual |
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 183 of file AbstractController.hh.
References m_machineID.
Referenced by gem5::ruby::Network::Network(), and gem5::ruby::RubySystem::registerAbstractController().
|
pure virtual |
Referenced by gem5::ruby::RubyPort::init().
|
pure virtual |
Referenced by functionalMemoryRead(), init(), and serviceMemoryQueue().
|
pure virtual |
Referenced by dequeueMemRespQueue(), and recvTimingResp().
|
virtual |
A function used to return the port associated with this bus object.
Reimplemented from gem5::SimObject.
Definition at line 349 of file AbstractController.cc.
References memoryPort.
|
inline |
Definition at line 184 of file AbstractController.hh.
References m_id.
|
inline |
Definition at line 91 of file AbstractController.hh.
References gem5::ruby::MachineID::getType(), and m_machineID.
Referenced by gem5::ruby::Network::Network(), and gem5::ruby::Topology::Topology().
|
inline |
Definition at line 90 of file AbstractController.hh.
References gem5::ruby::MachineID::getNum(), and m_machineID.
Referenced by gem5::ruby::Network::Network(), and gem5::ruby::Topology::Topology().
|
inlineprotectedvirtual |
Definition at line 377 of file AbstractController.hh.
References fatal.
Referenced by gem5::ruby::RubyPrefetcherProxy::hasBeenPrefetched(), and gem5::ruby::RubyPrefetcherProxy::hasBeenPrefetched().
|
inlineprotectedvirtual |
Definition at line 380 of file AbstractController.hh.
References fatal.
|
inlineprotectedvirtual |
Functions needed by CacheAccessor.
These are implemented in SLICC, thus the const& for all args to match the generated code.
Definition at line 374 of file AbstractController.hh.
References fatal.
Referenced by gem5::ruby::RubyPrefetcherProxy::inCache().
|
inlineprotected |
Profiles an event that ends a transaction.
This function also supports "unaddressed" transactions, those not associated with an address in memory but instead associated with a unique ID.
addr | address or unique ID with an outstanding transaction |
finalState | state of the line after the transaction |
isAddressed | is addr a line address or a unique ID |
Definition at line 284 of file AbstractController.hh.
References gem5::X86ISA::addr, gem5::curTick(), gem5_assert, gem5::ruby::AbstractController::ControllerStats::inTransLatHist, gem5::ruby::AbstractController::ControllerStats::inTransStateChanges, m_inTransAddressed, m_inTransUnaddressed, gem5::Named::name(), stats, and gem5::Clocked::ticksToCycles().
|
inlineprotected |
Profiles an event that initiates a protocol transactions for a specific line (e.g.
events triggered by incoming request messages). A histogram with the latency of the transactions is generated for all combinations of trigger event, initial state, and final state. This function also supports "unaddressed" transactions, those not associated with an address in memory but instead associated with a unique ID.
addr | address of the line, or unique transaction ID |
type | event that started the transaction |
initialState | state of the line before the transaction |
isAddressed | is addr a line address or a unique ID |
Definition at line 261 of file AbstractController.hh.
References gem5::X86ISA::addr, gem5::curTick(), gem5::ruby::AbstractController::ControllerStats::inTransRetryCnt, m_inTransAddressed, m_inTransUnaddressed, stats, and gem5::X86ISA::type.
|
virtual |
init() is called after all C++ SimObjects have been created and all ports are connected.
Initializations that are independent of unserialization but rely on a fully instantiated and connected SimObject graph should be done here.
Reimplemented from gem5::SimObject.
Definition at line 79 of file AbstractController.cc.
References gem5::ruby::NetDest::add(), gem5::ruby::AbstractController::ControllerStats::delayHistogram, gem5::ruby::AbstractController::ControllerStats::delayVCHistogram, downstreamAddrMap, downstreamDestinations, fatal, getMemReqQueue(), gem5::ruby::Network::getNumberOfVirtualNetworks(), gem5::ruby::MachineID::getType(), gem5::ArmISA::i, gem5::statistics::Histogram::init(), gem5::Named::name(), gem5::SimObject::params(), gem5::ruby::NetDest::resize(), gem5::ruby::MessageBuffer::setConsumer(), stats, and upstreamDestinations.
|
pure virtual |
Initialize the message buffers.
|
inline |
Definition at line 93 of file AbstractController.hh.
References m_net_ptr.
Referenced by gem5::ruby::Network::Network().
|
inlineprotectedvirtual |
Definition at line 384 of file AbstractController.hh.
References fatal.
Referenced by gem5::ruby::RubyPrefetcherProxy::inMissQueue().
bool gem5::ruby::AbstractController::isBlocked | ( | Addr | addr | ) |
Definition at line 343 of file AbstractController.cc.
References gem5::X86ISA::addr, and m_block_map.
bool gem5::ruby::AbstractController::isBlocked | ( | Addr | addr | ) | const |
Definition at line 328 of file AbstractController.cc.
References gem5::X86ISA::addr, m_block_map, and m_is_blocking.
Referenced by gem5::ruby::Sequencer::makeRequest().
|
inlinevirtual |
Definition at line 128 of file AbstractController.hh.
References m_mandatory_queue_latency.
Referenced by gem5::ruby::Sequencer::invL1(), gem5::ruby::VIPERCoalescer::invTCC(), gem5::ruby::VIPERCoalescer::invTCP(), gem5::ruby::Sequencer::issueRequest(), and gem5::ruby::VIPERCoalescer::issueRequest().
MachineID gem5::ruby::AbstractController::mapAddressToDownstreamMachine | ( | Addr | addr, |
MachineType | mtype = MachineType_NUM ) const |
Maps an address to the correct dowstream MachineID (i.e.
the component in the next level of the cache hierarchy towards memory)
This function uses the local list of possible destinations instead of querying the network.
the | destination address |
the | type of the destination (optional) |
Definition at line 427 of file AbstractController.cc.
References gem5::X86ISA::addr, downstreamAddrMap, fatal, gem5::ArmISA::i, and gem5::Named::name().
MachineID gem5::ruby::AbstractController::mapAddressToMachine | ( | Addr | addr, |
MachineType | mtype ) const |
Map an address to the correct MachineID.
This function querries the network for the NodeID of the destination for a given request using its address and the type of the destination. For example for a request with a given address to a directory it will return the MachineID of the authorative directory.
the | destination address |
the | type of the destination |
Definition at line 419 of file AbstractController.cc.
References gem5::X86ISA::addr, gem5::ruby::Network::addressToNodeID(), and m_net_ptr.
void gem5::ruby::AbstractController::memRespQueueDequeued | ( | ) |
Definition at line 452 of file AbstractController.cc.
References gem5::Clocked::clockEdge(), m_mem_ctrl_waiting_retry, mRetryRespEvent, gem5::EventManager::schedule(), and gem5::Event::scheduled().
Referenced by dequeueMemRespQueue().
|
inlinevirtual |
Notifies controller of a request coalesced at the sequencer.
By default, it does nothing. Behavior is protocol-specific
Definition at line 157 of file AbstractController.hh.
Referenced by gem5::ruby::Sequencer::hitCallback().
|
inlineprotected |
Profiles the end of an outgoing transaction.
(e.g. receiving the response for a requests) This function also supports "unaddressed" transactions, those not associated with an address in memory but instead associated with a unique ID.
addr | address of the line with an outstanding transaction |
isAddressed | is addr a line address or a unique ID |
Definition at line 342 of file AbstractController.hh.
References gem5::X86ISA::addr, gem5::curTick(), gem5_assert, m_outTransAddressed, m_outTransUnaddressed, gem5::Named::name(), gem5::ruby::AbstractController::ControllerStats::outTransLatHist, gem5::ruby::AbstractController::ControllerStats::outTransRetryCnt, stats, and gem5::Clocked::ticksToCycles().
|
inlineprotected |
Profiles an event that initiates a transaction in a peer controller (e.g.
an event that sends a request message) This function also supports "unaddressed" transactions, those not associated with an address in memory but instead associated with a unique ID.
addr | address of the line or a unique transaction ID |
type | event that started the transaction |
isAddressed | is addr a line address or a unique ID |
Definition at line 323 of file AbstractController.hh.
References gem5::X86ISA::addr, gem5::curTick(), m_outTransAddressed, m_outTransUnaddressed, and gem5::X86ISA::type.
gem5::ruby::AbstractController::PARAMS | ( | RubyController | ) |
|
pure virtual |
Implements gem5::ruby::Consumer.
|
protected |
Profiles the delay associated with messages.
Definition at line 138 of file AbstractController.cc.
References gem5::ruby::AbstractController::ControllerStats::delayHistogram, gem5::ruby::AbstractController::ControllerStats::delayVCHistogram, gem5::statistics::DistBase< Derived, Stor >::sample(), and stats.
|
protected |
Profiles original cache requests including PUTs.
|
pure virtual |
Definition at line 413 of file AbstractController.cc.
References memoryPort, gem5::RequestPort::sendAtomic(), and gem5::Clocked::ticksToCycles().
Referenced by gem5::ruby::RubyPort::MemResponsePort::recvAtomic().
bool gem5::ruby::AbstractController::recvTimingResp | ( | PacketPtr | pkt | ) |
Definition at line 374 of file AbstractController.cc.
References gem5::Clocked::clockEdge(), gem5::curTick(), gem5::Clocked::cyclesToTicks(), gem5_assert, gem5::Packet::getAddr(), gem5::ruby::RubySystem::getBlockSizeBytes(), getMemRespQueue(), gem5::Packet::getPtr(), gem5::ruby::AbstractController::SenderState::id, gem5::Packet::isRead(), gem5::Packet::isResponse(), gem5::Packet::isWrite(), m_machineID, m_mem_ctrl_waiting_retry, panic, gem5::ArmISA::s, and gem5::Packet::senderState.
Referenced by gem5::ruby::AbstractController::MemoryPort::recvTimingResp(), and serviceMemoryQueue().
|
virtual |
Callback to set stat parameters.
This callback is typically used for complex stats (e.g., distributions) that need parameters in addition to a name and a description. Stat names and descriptions should typically be set from the constructor usingo from the constructor using the ADD_STAT macro.
Reimplemented from gem5::statistics::Group.
Definition at line 132 of file AbstractController.cc.
References gem5::statistics::Group::regStats().
|
pure virtual |
Callback to reset stats.
Reimplemented from gem5::statistics::Group.
Definition at line 121 of file AbstractController.cc.
References gem5::ruby::AbstractController::ControllerStats::delayHistogram, gem5::ruby::AbstractController::ControllerStats::delayVCHistogram, gem5::ruby::Network::getNumberOfVirtualNetworks(), gem5::ArmISA::i, gem5::statistics::DistBase< Derived, Stor >::reset(), gem5::statistics::Group::resetStats(), and stats.
|
inline |
Definition at line 190 of file AbstractController.hh.
References gem5::X86ISA::addr, and addrRanges.
|
private |
Definition at line 467 of file AbstractController.cc.
References m_mem_ctrl_waiting_retry, memoryPort, and gem5::RequestPort::sendRetryResp().
|
protected |
Definition at line 262 of file AbstractController.cc.
References gem5::Packet::allocate(), gem5::Clocked::clockEdge(), gem5::Packet::createRead(), gem5::Packet::createWrite(), gem5::Packet::dataDynamic(), gem5::ruby::RubySystem::getBlockSizeBytes(), getMemReqQueue(), gem5::ruby::getOffset(), gem5::ruby::RubySystem::getWarmupEnabled(), m_id, m_waiting_mem_retry, memoryPort, panic, gem5::Packet::pushSenderState(), recvTimingResp(), gem5::ArmISA::s, gem5::ruby::Consumer::scheduleEvent(), gem5::RequestPort::sendFunctional(), gem5::RequestPort::sendTimingReq(), and gem5::Packet::setData().
|
protected |
Definition at line 146 of file AbstractController.cc.
References gem5::X86ISA::addr, DPRINTF, m_cur_in_port, m_in_ports, and m_waiting_buffers.
void gem5::ruby::AbstractController::unblock | ( | Addr | addr | ) |
Definition at line 334 of file AbstractController.cc.
References gem5::X86ISA::addr, m_block_map, and m_is_blocking.
Referenced by gem5::ruby::Sequencer::writeCallback().
|
pure virtual |
Implements gem5::ruby::Consumer.
|
protected |
Definition at line 223 of file AbstractController.cc.
References gem5::Clocked::clockEdge(), and m_waiting_buffers.
|
protected |
Definition at line 203 of file AbstractController.cc.
References gem5::X86ISA::addr, gem5::Clocked::clockEdge(), m_in_ports, and m_waiting_buffers.
|
protected |
Definition at line 160 of file AbstractController.cc.
References gem5::X86ISA::addr, gem5::Clocked::clockEdge(), gem5::SimObject::find(), m_waiting_buffers, and gem5::ruby::MessageBuffer::reanalyzeMessages().
|
protected |
Definition at line 182 of file AbstractController.cc.
References gem5::X86ISA::addr, gem5::Clocked::clockEdge(), m_cur_in_port, and m_waiting_buffers.
|
friend |
Definition at line 390 of file AbstractController.hh.
|
private |
The address range to which the controller responds on the CPU side.
Definition at line 457 of file AbstractController.hh.
Referenced by getAddrRanges(), and respondsTo().
|
private |
Definition at line 460 of file AbstractController.hh.
Referenced by init(), and mapAddressToDownstreamMachine().
|
private |
Definition at line 462 of file AbstractController.hh.
Referenced by allDownstreamDest(), and init().
|
protected |
Definition at line 402 of file AbstractController.hh.
Referenced by blockOnQueue(), isBlocked(), isBlocked(), and unblock().
|
protected |
Definition at line 413 of file AbstractController.hh.
|
protected |
Definition at line 395 of file AbstractController.hh.
|
protected |
Definition at line 410 of file AbstractController.hh.
Referenced by stallBuffer(), and wakeUpBuffers().
|
protected |
Definition at line 398 of file AbstractController.hh.
Referenced by getRequestorId(), and serviceMemoryQueue().
|
protected |
Definition at line 409 of file AbstractController.hh.
Referenced by stallBuffer(), and wakeUpAllBuffers().
|
protected |
Definition at line 240 of file AbstractController.hh.
Referenced by incomingTransactionEnd(), and incomingTransactionStart().
|
protected |
Definition at line 243 of file AbstractController.hh.
Referenced by incomingTransactionEnd(), and incomingTransactionStart().
|
protected |
Definition at line 401 of file AbstractController.hh.
Referenced by blockOnQueue(), isBlocked(), and unblock().
|
protected |
Definition at line 394 of file AbstractController.hh.
Referenced by getMachineID(), getType(), getVersion(), and recvTimingResp().
|
protected |
Definition at line 415 of file AbstractController.hh.
Referenced by mandatoryQueueLatency().
|
protected |
Definition at line 417 of file AbstractController.hh.
Referenced by memRespQueueDequeued(), recvTimingResp(), and sendRetryRespToMem().
|
protected |
Definition at line 400 of file AbstractController.hh.
Referenced by initNetworkPtr(), and mapAddressToMachine().
|
protected |
Definition at line 411 of file AbstractController.hh.
|
protected |
Definition at line 241 of file AbstractController.hh.
Referenced by outgoingTransactionEnd(), and outgoingTransactionStart().
|
protected |
Definition at line 244 of file AbstractController.hh.
Referenced by outgoingTransactionEnd(), and outgoingTransactionStart().
|
protected |
Definition at line 414 of file AbstractController.hh.
|
protected |
Definition at line 412 of file AbstractController.hh.
|
protected |
Definition at line 393 of file AbstractController.hh.
Referenced by AbstractController().
|
protected |
Definition at line 407 of file AbstractController.hh.
Referenced by stallBuffer(), wakeUpAllBuffers(), wakeUpAllBuffers(), wakeUpBuffer(), and wakeUpBuffers().
|
protected |
Definition at line 416 of file AbstractController.hh.
Referenced by serviceMemoryQueue().
|
protected |
Definition at line 443 of file AbstractController.hh.
Referenced by functionalMemoryRead(), functionalMemoryWrite(), getPort(), recvAtomic(), sendRetryRespToMem(), and serviceMemoryQueue().
|
private |
Definition at line 466 of file AbstractController.hh.
Referenced by memRespQueueDequeued().
gem5::ruby::AbstractController::ControllerStats gem5::ruby::AbstractController::stats |
|
private |
Definition at line 463 of file AbstractController.hh.
Referenced by allUpstreamDest(), and init().