gem5
v20.0.0.2
|
#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 () |
![]() | |
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... | |
![]() | |
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... | |
const Params * | params () const |
SimObject (const Params *_params) | |
![]() | |
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) |
EventManager (EventManager &em) | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
![]() | |
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) |
![]() | |
DrainState | drainState () const |
Return the current drain state of an object. More... | |
virtual void | notifyFork () |
Notify a child process of a fork. More... | |
![]() | |
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... | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. More... | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
![]() | |
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 |
Friends | |
class | SMMUTranslationProcess |
Additional Inherited Members | |
![]() | |
typedef ClockedObjectParams | Params |
Parameters of ClockedObject. More... | |
![]() | |
typedef SimObjectParams | Params |
![]() | |
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 const std::string & | currentSection () |
Gets the fully-qualified name of the active section. More... | |
static void | serializeAll (const std::string &cpt_dir) |
static void | unserializeGlobals (CheckpointIn &cp) |
![]() | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. More... | |
void | signalDrainDone () const |
Signal that an object is drained. More... | |
![]() | |
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... | |
![]() | |
const SimObjectParams * | _params |
Cached copy of the object parameters. More... | |
![]() | |
EventQueue * | eventq |
A pointer to this object's event queue. More... | |
Definition at line 55 of file smmu_v3_slaveifc.hh.
SMMUv3SlaveInterface::SMMUv3SlaveInterface | ( | const SMMUv3SlaveInterfaceParams * | p | ) |
Definition at line 45 of file smmu_v3_slaveifc.cc.
Referenced by drain().
|
inline |
Definition at line 123 of file smmu_v3_slaveifc.hh.
bool SMMUv3SlaveInterface::atsMasterRecvTimingResp | ( | PacketPtr | pkt | ) |
Definition at line 213 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 236 of file smmu_v3_slaveifc.cc.
References atsSlavePort, DPRINTF, and SlavePort::sendRetryReq().
Definition at line 170 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 188 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 253 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 91 of file smmu_v3_slaveifc.cc.
References atsMasterPort, atsSlavePort, SimObject::getPort(), and slavePort.
|
inline |
Definition at line 130 of file smmu_v3_slaveifc.hh.
References SimObject::_params, and drain().
Referenced by drain().
Definition at line 122 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 138 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 111 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 105 of file smmu_v3_slaveifc.cc.
References Clocked::nextCycle(), QueuedSlavePort::schedTimingResp(), and slavePort.
Referenced by SMMUv3::runProcessTiming().
void SMMUv3SlaveInterface::scheduleDeviceRetry | ( | ) |
Definition at line 243 of file smmu_v3_slaveifc.cc.
References deviceNeedsRetry, DPRINTF, Clocked::nextCycle(), EventManager::schedule(), Event::scheduled(), and sendDeviceRetryEvent.
void SMMUv3SlaveInterface::sendDeviceRetry | ( | ) |
Definition at line 230 of file smmu_v3_slaveifc.cc.
References SlavePort::sendRetryReq(), and slavePort.
Referenced by SMMUDeviceRetryEvent::process().
void SMMUv3SlaveInterface::sendRange | ( | ) |
Definition at line 79 of file smmu_v3_slaveifc.cc.
References fatal, Port::getPeer(), inform, Port::isConnected(), SlavePort::sendRangeChange(), and slavePort.
Referenced by setSMMU().
|
inline |
Definition at line 137 of file smmu_v3_slaveifc.hh.
References sendRange().
|
friend |
Definition at line 58 of file smmu_v3_slaveifc.hh.
Referenced by atsSlaveRecvTimingReq(), and recvTimingReq().
bool SMMUv3SlaveInterface::atsDeviceNeedsRetry |
Definition at line 111 of file smmu_v3_slaveifc.hh.
Referenced by schedAtsTimingResp().
SMMUATSMasterPort SMMUv3SlaveInterface::atsMasterPort |
Definition at line 77 of file smmu_v3_slaveifc.hh.
Referenced by getPort().
EventWrapper< SMMUv3SlaveInterface, &SMMUv3SlaveInterface::atsSendDeviceRetry> SMMUv3SlaveInterface::atsSendDeviceRetryEvent |
Definition at line 116 of file smmu_v3_slaveifc.hh.
Referenced by schedAtsTimingResp().
SMMUATSSlavePort SMMUv3SlaveInterface::atsSlavePort |
Definition at line 76 of file smmu_v3_slaveifc.hh.
Referenced by atsSendDeviceRetry(), getPort(), and schedAtsTimingResp().
std::list<SMMUTranslationProcess *> SMMUv3SlaveInterface::dependentReads[SMMU_MAX_TRANS_ID] |
Definition at line 92 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::hazardIdHold(), SMMUTranslationProcess::hazardIdRegister(), and SMMUTranslationProcess::hazardIdRelease().
SMMUSignal SMMUv3SlaveInterface::dependentReqRemoved |
Definition at line 94 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 93 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::hazardIdHold(), SMMUTranslationProcess::hazardIdRegister(), and SMMUTranslationProcess::hazardIdRelease().
bool SMMUv3SlaveInterface::deviceNeedsRetry |
Definition at line 110 of file smmu_v3_slaveifc.hh.
Referenced by atsSlaveRecvTimingReq(), recvTimingReq(), and scheduleDeviceRetry().
SMMUSignal SMMUv3SlaveInterface::duplicateReqRemoved |
Definition at line 90 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::hazard4kHold(), and SMMUTranslationProcess::hazard4kRelease().
std::list<SMMUTranslationProcess *> SMMUv3SlaveInterface::duplicateReqs |
Definition at line 89 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::hazard4kCheck(), SMMUTranslationProcess::hazard4kHold(), SMMUTranslationProcess::hazard4kRegister(), and SMMUTranslationProcess::hazard4kRelease().
SMMUTLB* SMMUv3SlaveInterface::mainTLB |
Definition at line 63 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup(), SMMUTranslationProcess::ifcTLBUpdate(), and ~SMMUv3SlaveInterface().
const bool SMMUv3SlaveInterface::mainTLBEnable |
Definition at line 66 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup(), and SMMUTranslationProcess::ifcTLBUpdate().
const Cycles SMMUv3SlaveInterface::mainTLBLat |
Definition at line 73 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup().
SMMUSemaphore SMMUv3SlaveInterface::mainTLBSem |
Definition at line 70 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup(), and SMMUTranslationProcess::ifcTLBUpdate().
SMMUTLB* SMMUv3SlaveInterface::microTLB |
Definition at line 62 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup(), SMMUTranslationProcess::microTLBUpdate(), and ~SMMUv3SlaveInterface().
const bool SMMUv3SlaveInterface::microTLBEnable |
Definition at line 65 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup(), and SMMUTranslationProcess::microTLBUpdate().
const Cycles SMMUv3SlaveInterface::microTLBLat |
Definition at line 72 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup().
SMMUSemaphore SMMUv3SlaveInterface::microTLBSem |
Definition at line 69 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup(), and SMMUTranslationProcess::microTLBUpdate().
unsigned SMMUv3SlaveInterface::pendingMemAccesses |
Definition at line 84 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::SMMUTranslationProcess(), and SMMUTranslationProcess::~SMMUTranslationProcess().
const unsigned SMMUv3SlaveInterface::portWidth |
Definition at line 80 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::completeTransaction(), SMMUTranslationProcess::main(), and recvTimingReq().
const bool SMMUv3SlaveInterface::prefetchEnable |
Definition at line 86 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBUpdate(), and SMMUTranslationProcess::issuePrefetch().
const bool SMMUv3SlaveInterface::prefetchReserveLastWay |
Definition at line 87 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBUpdate().
SMMUDeviceRetryEvent SMMUv3SlaveInterface::sendDeviceRetryEvent |
Definition at line 113 of file smmu_v3_slaveifc.hh.
Referenced by scheduleDeviceRetry().
SMMUSlavePort* SMMUv3SlaveInterface::slavePort |
Definition at line 75 of file smmu_v3_slaveifc.hh.
Referenced by getPort(), recvAtomic(), recvTimingReq(), schedTimingResp(), sendDeviceRetry(), and sendRange().
SMMUSemaphore SMMUv3SlaveInterface::slavePortSem |
Definition at line 68 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::main().
SMMUv3* SMMUv3SlaveInterface::smmu |
Definition at line 61 of file smmu_v3_slaveifc.hh.
Referenced by atsMasterRecvTimingResp(), atsSlaveRecvAtomic(), atsSlaveRecvTimingReq(), recvAtomic(), and recvTimingReq().
unsigned SMMUv3SlaveInterface::wrBufSlotsRemaining |
Definition at line 82 of file smmu_v3_slaveifc.hh.
Referenced by SMMUTranslationProcess::completeTransaction(), and recvTimingReq().
unsigned SMMUv3SlaveInterface::xlateSlotsRemaining |
Definition at line 83 of file smmu_v3_slaveifc.hh.
Referenced by atsSlaveRecvTimingReq(), SMMUTranslationProcess::completePrefetch(), SMMUTranslationProcess::completeTransaction(), drain(), SMMUTranslationProcess::issuePrefetch(), recvTimingReq(), and SMMUTranslationProcess::SMMUTranslationProcess().