90 a.pkt->dataStatic(ptr);
123 a.pkt->dataStatic(ptr);
153 while (sem.
count == 0) {
154 sem.
queue.push(
this);
166 if (!sem.
queue.empty()) {
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...
CallerType: A reference to an object of this class will be passed to the coroutine task.
Cycles is a wrapper class for representing cycle counts, i.e.
Wrap a member function inside MemberEventWrapper to use it as an event callback.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
gem5::Coroutine< PacketPtr, SMMUAction > Coroutine
SMMUAction run(PacketPtr pkt)
virtual void main(Yield &yield)=0
void doSleep(Yield &yield)
void doWrite(Yield &yield, Addr addr, const void *ptr, size_t size)
void doDelay(Yield &yield, Cycles cycles)
void doSemaphoreUp(SMMUSemaphore &sem)
SMMUProcess(const std::string &name, SMMUv3 &_smmu)
void scheduleWakeup(Tick when)
void doBroadcastSignal(SMMUSignal &sig)
void doSemaphoreDown(Yield &yield, SMMUSemaphore &sem)
void doWaitForSignal(Yield &yield, SMMUSignal &sig)
void doRead(Yield &yield, Addr addr, void *ptr, size_t size)
const unsigned requestPortWidth
SMMUSemaphore requestPortSem
SMMUAction runProcess(SMMUProcess *proc, PacketPtr pkt)
const RequestorID requestorId
bool isTimingMode() const
Is the system in timing mode?
std::enable_if_t<!std::is_same_v< T, void >, T > get()
get() is the way we can extrapolate arguments from the coroutine caller.
void schedule(Event &event, Tick when)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::shared_ptr< Request > RequestPtr
Tick curTick()
The universal simulation clock.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
uint64_t Tick
Tick count type.
This is an implementation of the SMMUv3 architecture.
std::queue< SMMUProcess * > queue
std::list< SMMUProcess * > waiting
const std::string & name()