Go to the documentation of this file.
38 #include "config/the_isa.hh"
40 #include "debug/GPUCoalescer.hh"
41 #include "debug/MemoryAccess.hh"
42 #include "debug/ProtocolTrace.hh"
52 #include "params/VIPERCoalescer.hh"
56 m_cache_inv_pkt(nullptr),
89 return RequestStatus_Aliased;
94 if (pkt->
req->isInvL1()) {
104 return RequestStatus_Issued;
113 if (pkt != NULL && pkt->
req->hasContextId()) {
114 proc_id = pkt->
req->contextId();
119 if (pkt->
req->hasPC()) {
120 pc = pkt->
req->getPC();
133 uint32_t tableSize = crequest->
getPackets().size();
134 for (
int i = 0;
i < tableSize;
i++) {
136 uint32_t tmpOffset = (tmpPkt->
getAddr()) - line_addr;
137 uint32_t tmpSize = tmpPkt->
getSize();
141 atomicOps.push_back(tmpAtomicOp);
142 }
else if (tmpPkt->
isWrite()) {
146 for (
int j = 0;
j < tmpSize;
j++) {
147 accessMask[tmpOffset +
j] =
true;
150 std::shared_ptr<RubyRequest> msg;
154 RubyAccessMode_Supervisor, pkt,
155 PrefetchBit_No, proc_id, 100,
156 blockSize, accessMask,
157 dataBlock, atomicOps, crequest->
getSeqNum());
161 RubyAccessMode_Supervisor, pkt,
162 PrefetchBit_No, proc_id, 100,
163 blockSize, accessMask,
171 DPRINTFR(ProtocolTrace,
"%15s %3s %10s%20s %6s>%-6s %s %s\n",
174 RubyRequestType_to_string(crequest->
getRubyType()));
177 "there should not be any I-Fetch requests in the GPU Coalescer");
207 for (
auto pkt : req_pkts) {
214 writeCompletePkt->
setAddr(pkt->getAddr());
226 auto key = instSeqNum;
236 RubyPort::SenderState *ss =
237 safe_cast<RubyPort::SenderState *>
238 (writeCompletePkt->senderState);
239 MemResponsePort *port = ss->port;
240 assert(port != NULL);
242 writeCompletePkt->senderState = ss->predecessor;
244 port->hitCallback(writeCompletePkt);
281 "There are %d Invalidations outstanding before Cache Walk\n",
284 for (
int i = 0;
i < size;
i++) {
287 RubyRequestType request_type = RubyRequestType_REPLACEMENT;
288 std::shared_ptr<RubyRequest> msg = std::make_shared<RubyRequest>(
290 request_type, RubyAccessMode_Supervisor,
300 "There are %d Invalidatons outstanding after Cache Walk\n",
Cycles m_deadlock_threshold
bool scheduled() const
Determine if the current event is scheduled.
static uint32_t getBlockSizeBytes()
RubyRequestType getRubyType() const
Addr makeLineAddress(Addr addr)
VIPERCoalescer(const Params &)
RubyGPUCoalescerParams Params
uint64_t Tick
Tick count type.
void issueRequest(CoalescedRequest *crequest) override
RequestPtr req
A pointer to the original request.
void setData(const uint8_t *data, int offset, int len)
PacketPtr getFirstPkt() const
void enqueue(MsgPtr message, Tick curTime, Tick delta)
MessageBuffer * m_mandatory_q_ptr
EventFunctionWrapper deadlockCheckEvent
AbstractController * m_controller
void completeHitCallback(std::vector< PacketPtr > &mylist)
void schedule(Event &event, Tick when)
Tick cyclesToTicks(Cycles c) const
void writeCompleteCallback(Addr address, uint64_t instSeqNum)
std::unordered_map< uint64_t, std::vector< PacketPtr > > m_writeCompletePktMap
PacketPtr m_cache_inv_pkt
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...
AtomicOpFunctor * getAtomicOp() const
Accessor function to atomic op.
void makeWriteCompletePkts(CoalescedRequest *crequest)
ProbePointArg< PacketInfo > Packet
Packet probe point.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void setAddr(Addr _addr)
Update the address of this packet mid-transaction.
RequestStatus makeRequest(PacketPtr pkt) override
MemCmd cmd
The command field of the packet.
void invTCPCallback(Addr address)
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
uint64_t getSeqNum() const
Addr getAddressAtIdx(int idx) const
T * getPtr()
get a pointer to the data ptr.
std::vector< PacketPtr > & getPackets()
Tick curTick()
The universal simulation clock.
SenderState * senderState
This packet's sender state.
void invTCP()
Invalidate TCP.
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
virtual Cycles mandatoryQueueLatency(const RubyRequestType ¶m_type)
RequestStatus makeRequest(PacketPtr pkt) override
std::string printAddress(Addr addr)
CacheMemory * m_dataCache_ptr
Generated on Tue Mar 23 2021 19:41:28 for gem5 by doxygen 1.8.17