/**
* Performs the access specified by the request.
* @param pkt The request to perform.
- * @return The number of cycles required for the access.
+ * @return The number of ticks required for the access.
*/
- Cycles recvAtomic(PacketPtr pkt);
+ Tick recvAtomic(PacketPtr pkt);
/**
* Snoop for the provided request in the cache and return the estimated
- * time of completion.
+ * time taken.
* @param pkt The memory request to snoop
- * @return The number of cycles required for the snoop.
+ * @return The number of ticks required for the snoop.
*/
- Cycles recvAtomicSnoop(PacketPtr pkt);
+ Tick recvAtomicSnoop(PacketPtr pkt);
/**
* Performs the access specified by the request.
template<class TagStore>
-Cycles
+Tick
Cache<TagStore>::recvAtomic(PacketPtr pkt)
{
Cycles lat = hitLatency;
pkt->cmdString(), pkt->getAddr());
}
- return lat;
+ return lat * clockPeriod();
}
// should assert here that there are no outstanding MSHRs or
pkt->makeAtomicResponse();
}
- return lat;
+ return lat * clockPeriod();
}
}
template<class TagStore>
-Cycles
+Tick
Cache<TagStore>::recvAtomicSnoop(PacketPtr pkt)
{
// Snoops shouldn't happen when bypassing caches
if (pkt->req->isUncacheable() || pkt->cmd == MemCmd::Writeback) {
// Can't get a hit on an uncacheable address
// Revisit this for multi level coherence
- return hitLatency;
+ return 0;
}
BlkType *blk = tags->findBlock(pkt->getAddr());
handleSnoop(pkt, blk, false, false, false);
- return hitLatency;
+ return hitLatency * clockPeriod();
}
Tick
Cache<TagStore>::CpuSidePort::recvAtomic(PacketPtr pkt)
{
- // @todo: Note that this is currently using cycles instead of
- // ticks and will be fixed in a future patch
return cache->recvAtomic(pkt);
}
Tick
Cache<TagStore>::MemSidePort::recvAtomicSnoop(PacketPtr pkt)
{
- // @todo: Note that this is using cycles and not ticks and will be
- // fixed in a future patch
return cache->recvAtomicSnoop(pkt);
}