148 while (sem.
count == 0) {
149 sem.
queue.push(
this);
161 if (!sem.
queue.empty()) {
void doDelay(Yield &yield, Cycles cycles)
std::queue< SMMUProcess * > queue
Cycles is a wrapper class for representing cycle counts, i.e.
SMMUAction runProcess(SMMUProcess *proc, PacketPtr pkt)
const std::string & name()
std::list< SMMUProcess * > waiting
SMMUAction run(PacketPtr pkt)
std::shared_ptr< Request > RequestPtr
const unsigned masterPortWidth
void doSleep(Yield &yield)
SMMUProcess(const std::string &name, SMMUv3 &_smmu)
void doBroadcastSignal(SMMUSignal &sig)
void dataStatic(T *p)
Set the data pointer to the following value that should not be freed.
CallerType: A reference to an object of this class will be passed to the coroutine task...
virtual void main(Yield &yield)=0
void doRead(Yield &yield, Addr addr, void *ptr, size_t size)
Tick curTick()
The current simulated tick.
void doWrite(Yield &yield, Addr addr, const void *ptr, size_t size)
uint64_t Tick
Tick count type.
void doSemaphoreUp(SMMUSemaphore &sem)
void scheduleWakeup(Tick when)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
SMMUSemaphore masterPortSem
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
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...
This is an implementation of the SMMUv3 architecture.
m5::Coroutine< PacketPtr, SMMUAction > Coroutine
void doWaitForSignal(Yield &yield, SMMUSignal &sig)
void schedule(Event &event, Tick when)
std::enable_if<!std::is_same< T, void >::value, T >::type get()
get() is the way we can extrapolate arguments from the coroutine caller.
void doSemaphoreDown(Yield &yield, SMMUSemaphore &sem)
bool isTimingMode() const
Is the system in timing mode?
ProbePointArg< PacketInfo > Packet
Packet probe point.