|
gem5
v19.0.0.0
|
#include <smmu_v3_slaveifc.hh>
Public Member Functions | |
| Tick | recvAtomic (PacketPtr pkt) |
| bool | recvTimingReq (PacketPtr pkt) |
| void | schedTimingResp (PacketPtr pkt) |
| Tick | atsSlaveRecvAtomic (PacketPtr pkt) |
| bool | atsSlaveRecvTimingReq (PacketPtr pkt) |
| bool | atsMasterRecvTimingResp (PacketPtr pkt) |
| void | schedAtsTimingResp (PacketPtr pkt) |
| void | scheduleDeviceRetry () |
| void | sendDeviceRetry () |
| void | atsSendDeviceRetry () |
| Port & | getPort (const std::string &name, PortID id) override |
| Get a port with a given name and index. More... | |
| SMMUv3SlaveInterface (const SMMUv3SlaveInterfaceParams *p) | |
| ~SMMUv3SlaveInterface () | |
| const SMMUv3SlaveInterfaceParams * | params () const |
| DrainState | drain () override |
| Notify an object that it needs to drain its state. More... | |
| void | setSMMU (SMMUv3 *_smmu) |
| void | sendRange () |
Public Member Functions inherited from ClockedObject | |
| ClockedObject (const ClockedObjectParams *p) | |
| const Params * | params () const |
| void | serialize (CheckpointOut &cp) const override |
| Serialize an object. More... | |
| void | unserialize (CheckpointIn &cp) override |
| Unserialize an object. More... | |
| Enums::PwrState | pwrState () const |
| std::string | pwrStateName () const |
| std::vector< double > | pwrStateWeights () const |
| Returns the percentage residency for each power state. More... | |
| void | computeStats () |
| Record stats values like state residency by computing the time difference from previous update. More... | |
| void | pwrState (Enums::PwrState) |
Public Member Functions inherited from SimObject | |
| const Params * | params () const |
| SimObject (const Params *_params) | |
| virtual | ~SimObject () |
| virtual const std::string | name () const |
| virtual void | init () |
| init() is called after all C++ SimObjects have been created and all ports are connected. More... | |
| virtual void | loadState (CheckpointIn &cp) |
| loadState() is called on each SimObject when restoring from a checkpoint. More... | |
| virtual void | initState () |
| initState() is called on each SimObject when not restoring from a checkpoint. More... | |
| virtual void | regProbePoints () |
| Register probe points for this object. More... | |
| virtual void | regProbeListeners () |
| Register probe listeners for this object. More... | |
| ProbeManager * | getProbeManager () |
| Get the probe manager for this object. More... | |
| virtual void | startup () |
| startup() is the final initialization call before simulation. More... | |
| DrainState | drain () override |
| Provide a default implementation of the drain interface for objects that don't need draining. More... | |
| virtual void | memWriteback () |
| Write back dirty buffers to memory using functional writes. More... | |
| virtual void | memInvalidate () |
| Invalidate the contents of memory buffers. More... | |
| void | serialize (CheckpointOut &cp) const override |
| Serialize an object. More... | |
| void | unserialize (CheckpointIn &cp) override |
| Unserialize an object. More... | |
Public Member Functions inherited from EventManager | |
| EventManager (EventManager &em) | |
| EventManager (EventManager *em) | |
| EventManager (EventQueue *eq) | |
| 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) |
| void | setCurTick (Tick newVal) |
Public Member Functions inherited from Serializable | |
| Serializable () | |
| virtual | ~Serializable () |
| void | serializeSection (CheckpointOut &cp, const char *name) const |
| Serialize an object into a new section. More... | |
| void | serializeSection (CheckpointOut &cp, const std::string &name) const |
| void | unserializeSection (CheckpointIn &cp, const char *name) |
| Unserialize an a child object. More... | |
| void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Public Member Functions inherited from Drainable | |
| DrainState | drainState () const |
| Return the current drain state of an object. More... | |
| virtual void | notifyFork () |
| Notify a child process of a fork. More... | |
Public Member Functions inherited from Stats::Group | |
| Group ()=delete | |
| Group (const Group &)=delete | |
| Group & | operator= (const Group &)=delete |
| Group (Group *parent, const char *name=nullptr) | |
| Construct a new statistics group. More... | |
| virtual | ~Group () |
| virtual void | regStats () |
| Callback to set stat parameters. More... | |
| virtual void | resetStats () |
| Callback to reset stats. More... | |
| virtual void | preDumpStats () |
| Callback before stats are dumped. More... | |
| void | addStat (Stats::Info *info) |
| Register a stat with this group. More... | |
| const std::map< std::string, Group * > & | getStatGroups () const |
| Get all child groups associated with this object. More... | |
| const std::vector< Info * > & | getStats () const |
| Get all stats associated with this object. More... | |
| void | addStatGroup (const char *name, Group *block) |
| Add a stat block as a child of this block. More... | |
Public Member Functions inherited from Clocked | |
| void | updateClockPeriod () |
| Update the tick to the current tick. More... | |
| 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. More... | |
| Cycles | curCycle () const |
| Determine the current cycle, corresponding to a tick aligned to a clock edge. More... | |
| 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. More... | |
| uint64_t | frequency () const |
| Tick | clockPeriod () const |
| double | voltage () const |
| Cycles | ticksToCycles (Tick t) const |
| Tick | cyclesToTicks (Cycles c) const |
Public Attributes | |
| SMMUv3 * | smmu |
| SMMUTLB * | microTLB |
| SMMUTLB * | mainTLB |
| const bool | microTLBEnable |
| const bool | mainTLBEnable |
| SMMUSemaphore | slavePortSem |
| SMMUSemaphore | microTLBSem |
| SMMUSemaphore | mainTLBSem |
| const Cycles | microTLBLat |
| const Cycles | mainTLBLat |
| SMMUSlavePort * | slavePort |
| SMMUATSSlavePort | atsSlavePort |
| SMMUATSMasterPort | atsMasterPort |
| const unsigned | portWidth |
| unsigned | wrBufSlotsRemaining |
| unsigned | xlateSlotsRemaining |
| unsigned | pendingMemAccesses |
| const bool | prefetchEnable |
| const bool | prefetchReserveLastWay |
| std::list< SMMUTranslationProcess * > | duplicateReqs |
| SMMUSignal | duplicateReqRemoved |
| std::list< SMMUTranslationProcess * > | dependentReads [SMMU_MAX_TRANS_ID] |
| std::list< SMMUTranslationProcess * > | dependentWrites [SMMU_MAX_TRANS_ID] |
| SMMUSignal | dependentReqRemoved |
| bool | deviceNeedsRetry |
| bool | atsDeviceNeedsRetry |
| SMMUDeviceRetryEvent | sendDeviceRetryEvent |
| EventWrapper< SMMUv3SlaveInterface, &SMMUv3SlaveInterface::atsSendDeviceRetry > | atsSendDeviceRetryEvent |
Friends | |
| class | SMMUTranslationProcess |
Additional Inherited Members | |
Public Types inherited from ClockedObject | |
| typedef ClockedObjectParams | Params |
| Parameters of ClockedObject. More... | |
Public Types inherited from SimObject | |
| typedef SimObjectParams | Params |
Static Public Member Functions inherited from SimObject | |
| static void | serializeAll (CheckpointOut &cp) |
| Serialize all SimObjects in the system. More... | |
| static SimObject * | find (const char *name) |
| Find the SimObject with the given name and return a pointer to it. More... | |
Static Public Member Functions inherited from Serializable | |
| static const std::string & | currentSection () |
| Get the fully-qualified name of the active section. More... | |
| static void | serializeAll (const std::string &cpt_dir) |
| static void | unserializeGlobals (CheckpointIn &cp) |
Static Public Attributes inherited from Serializable | |
| static int | ckptCount = 0 |
| static int | ckptMaxCount = 0 |
| static int | ckptPrevCount = -1 |
Protected Member Functions inherited from Drainable | |
| Drainable () | |
| virtual | ~Drainable () |
| virtual void | drainResume () |
| Resume execution after a successful drain. More... | |
| void | signalDrainDone () const |
| Signal that an object is drained. More... | |
Protected Member Functions inherited from Clocked | |
| Clocked (ClockDomain &clk_domain) | |
| Create a clocked object and set the clock domain based on the parameters. More... | |
| Clocked (Clocked &)=delete | |
| Clocked & | operator= (Clocked &)=delete |
| virtual | ~Clocked () |
| Virtual destructor due to inheritance. More... | |
| void | resetClock () const |
| Reset the object's clock using the current global tick value. More... | |
| virtual void | clockPeriodUpdated () |
| A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed. More... | |
Protected Attributes inherited from ClockedObject | |
| Enums::PwrState | _currPwrState |
| To keep track of the current power state. More... | |
| Tick | prvEvalTick |
| ClockedObject::ClockedObjectStats | stats |
Protected Attributes inherited from SimObject | |
| const SimObjectParams * | _params |
| Cached copy of the object parameters. More... | |
Protected Attributes inherited from EventManager | |
| EventQueue * | eventq |
| A pointer to this object's event queue. More... | |
Definition at line 57 of file smmu_v3_slaveifc.hh.
| SMMUv3SlaveInterface::SMMUv3SlaveInterface | ( | const SMMUv3SlaveInterfaceParams * | p | ) |
Definition at line 47 of file smmu_v3_slaveifc.cc.
Referenced by drain().
|
inline |
Definition at line 125 of file smmu_v3_slaveifc.hh.
| bool SMMUv3SlaveInterface::atsMasterRecvTimingResp | ( | PacketPtr | pkt | ) |
Definition at line 215 of file smmu_v3_slaveifc.cc.
References DPRINTF, Packet::getAddr(), Packet::getSize(), Packet::headerDelay, Packet::payloadDelay, Packet::popSenderState(), SMMUv3::runProcessTiming(), safe_cast(), and smmu.
Referenced by SMMUATSMasterPort::recvTimingResp().
| void SMMUv3SlaveInterface::atsSendDeviceRetry | ( | ) |
Definition at line 238 of file smmu_v3_slaveifc.cc.
References atsSlavePort, DPRINTF, and SlavePort::sendRetryReq().
Definition at line 172 of file smmu_v3_slaveifc.cc.
References ArmISA::a, ACTION_SEND_RESP_ATS, SMMUTranslationProcess::beginTransaction(), csprintf(), SMMUAction::delay, DPRINTF, SMMUTranslRequest::fromPacket(), Packet::getAddr(), Packet::getSize(), SimObject::name(), SMMUv3::runProcessAtomic(), smmu, and SMMUAction::type.
Referenced by SMMUATSSlavePort::recvAtomic().
| bool SMMUv3SlaveInterface::atsSlaveRecvTimingReq | ( | PacketPtr | pkt | ) |
Definition at line 190 of file smmu_v3_slaveifc.cc.
References SMMUTranslationProcess::beginTransaction(), csprintf(), deviceNeedsRetry, DPRINTF, SMMUTranslRequest::fromPacket(), Packet::getAddr(), Packet::getSize(), Packet::headerDelay, SimObject::name(), Packet::payloadDelay, SMMUv3::runProcessTiming(), smmu, SMMUTranslationProcess, and xlateSlotsRemaining.
Referenced by SMMUATSSlavePort::recvTimingReq().
|
overridevirtual |
Notify an object that it needs to drain its state.
If the object does not need further simulation to drain internal buffers, it returns DrainState::Drained and automatically switches to the Drained state. If the object needs more simulation, it returns DrainState::Draining and automatically enters the Draining state. Other return values are invalid.
Implements Drainable.
Definition at line 255 of file smmu_v3_slaveifc.cc.
References Drained, Draining, params(), SMMUv3SlaveInterface(), and xlateSlotsRemaining.
Referenced by params().
Get a port with a given name and index.
This is used at binding time and returns a reference to a protocol-agnostic port.
| if_name | Port name |
| idx | Index in the case of a VectorPort |
Reimplemented from SimObject.
Definition at line 93 of file smmu_v3_slaveifc.cc.
References atsMasterPort, atsSlavePort, SimObject::getPort(), and slavePort.
|
inline |
Definition at line 132 of file smmu_v3_slaveifc.hh.
References SimObject::_params, and drain().
Referenced by drain().
Definition at line 124 of file smmu_v3_slaveifc.cc.
References ArmISA::a, ACTION_SEND_RESP, SMMUTranslationProcess::beginTransaction(), csprintf(), SMMUAction::delay, DPRINTF, SMMUTranslRequest::fromPacket(), Packet::getAddr(), Port::getPeer(), Packet::getSize(), SimObject::name(), SMMUv3::runProcessAtomic(), slavePort, smmu, and SMMUAction::type.
Referenced by SMMUSlavePort::recvAtomic().
| bool SMMUv3SlaveInterface::recvTimingReq | ( | PacketPtr | pkt | ) |
Definition at line 140 of file smmu_v3_slaveifc.cc.
References SMMUTranslationProcess::beginTransaction(), csprintf(), deviceNeedsRetry, DPRINTF, SMMUTranslRequest::fromPacket(), Packet::getAddr(), Port::getPeer(), Packet::getSize(), Packet::headerDelay, Packet::isWrite(), SimObject::name(), Packet::payloadDelay, portWidth, SMMUv3::runProcessTiming(), slavePort, smmu, SMMUTranslationProcess, wrBufSlotsRemaining, and xlateSlotsRemaining.
Referenced by SMMUSlavePort::recvTimingReq().
| void SMMUv3SlaveInterface::schedAtsTimingResp | ( | PacketPtr | pkt | ) |
Definition at line 113 of file smmu_v3_slaveifc.cc.
References atsDeviceNeedsRetry, atsSendDeviceRetryEvent, atsSlavePort, Clocked::nextCycle(), QueuedSlavePort::schedTimingResp(), and EventManager::schedule().
Referenced by SMMUv3::runProcessTiming().
| void SMMUv3SlaveInterface::schedTimingResp | ( | PacketPtr | pkt | ) |
Definition at line 107 of file smmu_v3_slaveifc.cc.
References Clocked::nextCycle(), QueuedSlavePort::schedTimingResp(), and slavePort.
Referenced by SMMUv3::runProcessTiming().
| void SMMUv3SlaveInterface::scheduleDeviceRetry | ( | ) |
Definition at line 245 of file smmu_v3_slaveifc.cc.
References deviceNeedsRetry, DPRINTF, Clocked::nextCycle(), EventManager::schedule(), Event::scheduled(), and sendDeviceRetryEvent.
| void SMMUv3SlaveInterface::sendDeviceRetry | ( | ) |
Definition at line 232 of file smmu_v3_slaveifc.cc.
References SlavePort::sendRetryReq(), and slavePort.
Referenced by SMMUDeviceRetryEvent::process().
| void SMMUv3SlaveInterface::sendRange | ( | ) |
Definition at line 81 of file smmu_v3_slaveifc.cc.
References fatal, Port::getPeer(), inform, Port::isConnected(), SlavePort::sendRangeChange(), and slavePort.
Referenced by setSMMU().
|
inline |
Definition at line 139 of file smmu_v3_slaveifc.hh.
References sendRange().
|
friend |
Definition at line 60 of file smmu_v3_slaveifc.hh.
Referenced by atsSlaveRecvTimingReq(), and recvTimingReq().
| bool SMMUv3SlaveInterface::atsDeviceNeedsRetry |
Definition at line 113 of file smmu_v3_slaveifc.hh.
Referenced by schedAtsTimingResp().
| SMMUATSMasterPort SMMUv3SlaveInterface::atsMasterPort |
Definition at line 79 of file smmu_v3_slaveifc.hh.
Referenced by getPort().
| EventWrapper< SMMUv3SlaveInterface, &SMMUv3SlaveInterface::atsSendDeviceRetry> SMMUv3SlaveInterface::atsSendDeviceRetryEvent |
Definition at line 118 of file smmu_v3_slaveifc.hh.
Referenced by schedAtsTimingResp().
| SMMUATSSlavePort SMMUv3SlaveInterface::atsSlavePort |
Definition at line 78 of file smmu_v3_slaveifc.hh.
Referenced by atsSendDeviceRetry(), getPort(), and schedAtsTimingResp().
| std::list<SMMUTranslationProcess *> SMMUv3SlaveInterface::dependentReads[SMMU_MAX_TRANS_ID] |
Definition at line 94 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::hazardIdHold(), SMMUTranslationProcess::hazardIdRegister(), and SMMUTranslationProcess::hazardIdRelease().
| SMMUSignal SMMUv3SlaveInterface::dependentReqRemoved |
Definition at line 96 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::hazardIdHold(), and SMMUTranslationProcess::hazardIdRelease().
| std::list<SMMUTranslationProcess *> SMMUv3SlaveInterface::dependentWrites[SMMU_MAX_TRANS_ID] |
Definition at line 95 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::hazardIdHold(), SMMUTranslationProcess::hazardIdRegister(), and SMMUTranslationProcess::hazardIdRelease().
| bool SMMUv3SlaveInterface::deviceNeedsRetry |
Definition at line 112 of file smmu_v3_slaveifc.hh.
Referenced by atsSlaveRecvTimingReq(), recvTimingReq(), and scheduleDeviceRetry().
| SMMUSignal SMMUv3SlaveInterface::duplicateReqRemoved |
Definition at line 92 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::hazard4kHold(), and SMMUTranslationProcess::hazard4kRelease().
| std::list<SMMUTranslationProcess *> SMMUv3SlaveInterface::duplicateReqs |
Definition at line 91 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::hazard4kCheck(), SMMUTranslationProcess::hazard4kHold(), SMMUTranslationProcess::hazard4kRegister(), and SMMUTranslationProcess::hazard4kRelease().
| SMMUTLB* SMMUv3SlaveInterface::mainTLB |
Definition at line 65 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup(), SMMUTranslationProcess::ifcTLBUpdate(), and ~SMMUv3SlaveInterface().
| const bool SMMUv3SlaveInterface::mainTLBEnable |
Definition at line 68 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup(), and SMMUTranslationProcess::ifcTLBUpdate().
| const Cycles SMMUv3SlaveInterface::mainTLBLat |
Definition at line 75 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup().
| SMMUSemaphore SMMUv3SlaveInterface::mainTLBSem |
Definition at line 72 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup(), and SMMUTranslationProcess::ifcTLBUpdate().
| SMMUTLB* SMMUv3SlaveInterface::microTLB |
Definition at line 64 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup(), SMMUTranslationProcess::microTLBUpdate(), and ~SMMUv3SlaveInterface().
| const bool SMMUv3SlaveInterface::microTLBEnable |
Definition at line 67 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup(), and SMMUTranslationProcess::microTLBUpdate().
| const Cycles SMMUv3SlaveInterface::microTLBLat |
Definition at line 74 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup().
| SMMUSemaphore SMMUv3SlaveInterface::microTLBSem |
Definition at line 71 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup(), and SMMUTranslationProcess::microTLBUpdate().
| unsigned SMMUv3SlaveInterface::pendingMemAccesses |
Definition at line 86 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::SMMUTranslationProcess(), and SMMUTranslationProcess::~SMMUTranslationProcess().
| const unsigned SMMUv3SlaveInterface::portWidth |
Definition at line 82 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::completeTransaction(), SMMUTranslationProcess::main(), and recvTimingReq().
| const bool SMMUv3SlaveInterface::prefetchEnable |
Definition at line 88 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBUpdate(), and SMMUTranslationProcess::issuePrefetch().
| const bool SMMUv3SlaveInterface::prefetchReserveLastWay |
Definition at line 89 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBUpdate().
| SMMUDeviceRetryEvent SMMUv3SlaveInterface::sendDeviceRetryEvent |
Definition at line 115 of file smmu_v3_slaveifc.hh.
Referenced by scheduleDeviceRetry().
| SMMUSlavePort* SMMUv3SlaveInterface::slavePort |
Definition at line 77 of file smmu_v3_slaveifc.hh.
Referenced by getPort(), recvAtomic(), recvTimingReq(), schedTimingResp(), sendDeviceRetry(), and sendRange().
| SMMUSemaphore SMMUv3SlaveInterface::slavePortSem |
Definition at line 70 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::main().
| SMMUv3* SMMUv3SlaveInterface::smmu |
Definition at line 63 of file smmu_v3_slaveifc.hh.
Referenced by atsMasterRecvTimingResp(), atsSlaveRecvAtomic(), atsSlaveRecvTimingReq(), recvAtomic(), and recvTimingReq().
| unsigned SMMUv3SlaveInterface::wrBufSlotsRemaining |
Definition at line 84 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::completeTransaction(), and recvTimingReq().
| unsigned SMMUv3SlaveInterface::xlateSlotsRemaining |
Definition at line 85 of file smmu_v3_slaveifc.hh.
Referenced by atsSlaveRecvTimingReq(), SMMUTranslationProcess::completePrefetch(), SMMUTranslationProcess::completeTransaction(), drain(), SMMUTranslationProcess::issuePrefetch(), recvTimingReq(), and SMMUTranslationProcess::SMMUTranslationProcess().