Hi everyone,
Could someone please help me with explaining what's happening in the below
code snippet? It's the receiveAtomicLogic() function in mem_ctrl.cc. Why
are we returning the latency as 0 if the packet doesn't have any data? And
in what case will the packet have/not have data?
// do the actual memory access and turn the packet into a response
mem_intr->access(pkt);
if (pkt->hasData()) {
// this value is not supposed to be accurate, just enough to
// keep things going, mimic a closed page
// also this latency can't be 0
return mem_intr->accessLatency();
}
return 0;
--
Regards,
John Smith
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]