.flags(total | nozero | nonan)
;
for (int i = 0; i < system->maxMasters(); i++) {
- mshr_uncacheable_lat[access_idx].subname(i, system->getMasterName(i));
+ mshr_uncacheable_lat[access_idx].subname(
+ i, system->getMasterName(i));
}
}
mshr_miss_latency[access_idx] / mshr_misses[access_idx];
for (int i = 0; i < system->maxMasters(); i++) {
- avgMshrMissLatency[access_idx].subname(i, system->getMasterName(i));
+ avgMshrMissLatency[access_idx].subname(
+ i, system->getMasterName(i));
}
}
mshr_uncacheable_lat[access_idx] / mshr_uncacheable[access_idx];
for (int i = 0; i < system->maxMasters(); i++) {
- avgMshrUncacheableLatency[access_idx].subname(i, system->getMasterName(i));
+ avgMshrUncacheableLatency[access_idx].subname(
+ i, system->getMasterName(i));
}
}
.desc("average overall mshr uncacheable latency")
.flags(total | nozero | nonan)
;
- overallAvgMshrUncacheableLatency = overallMshrUncacheableLatency / overallMshrUncacheable;
+ overallAvgMshrUncacheableLatency =
+ overallMshrUncacheableLatency / overallMshrUncacheable;
for (int i = 0; i < system->maxMasters(); i++) {
overallAvgMshrUncacheableLatency.subname(i, system->getMasterName(i));
}
// go to next level.
return false;
} else if ((blk != NULL) &&
- (pkt->needsWritable() ? blk->isWritable() : blk->isReadable())) {
+ (pkt->needsWritable() ? blk->isWritable() :
+ blk->isReadable())) {
// OK to satisfy access
incHitCount(pkt);
satisfyCpuSideRequest(pkt, blk);
// hit (for all other request types)
- if (prefetcher && (prefetchOnAccess || (blk && blk->wasPrefetched()))) {
+ if (prefetcher && (prefetchOnAccess ||
+ (blk && blk->wasPrefetched()))) {
if (blk)
blk->status &= ~BlkHWPrefetched;
if (pkt->cmd == MemCmd::CleanEvict) {
pendingDelete.reset(pkt);
} else {
- DPRINTF(Cache, "%s coalescing MSHR for %s addr %#llx size %d\n",
- __func__, pkt->cmdString(), pkt->getAddr(),
- pkt->getSize());
+ DPRINTF(Cache, "%s coalescing MSHR for %s addr %#llx "
+ "size %d\n", __func__, pkt->cmdString(),
+ pkt->getAddr(), pkt->getSize());
assert(pkt->req->masterId() < system->maxMasters());
mshr_hits[pkt->cmdToIndex()][pkt->req->masterId()]++;
}
}
// We should call the prefetcher reguardless if the request is
- // satisfied or not, reguardless if the request is in the MSHR or
- // not. The request could be a ReadReq hit, but still not
+ // satisfied or not, reguardless if the request is in the MSHR
+ // or not. The request could be a ReadReq hit, but still not
// satisfied (potentially because of a prior write to the same
// cache line. So, even when not satisfied, tehre is an MSHR
- // already allocated for this, we need to let the prefetcher know
- // about the request
+ // already allocated for this, we need to let the prefetcher
+ // know about the request
if (prefetcher) {
// Don't notify on SWPrefetch
if (!pkt->cmd.isSWPrefetch())
bool is_invalidate = bus_pkt->isInvalidate();
// We are now dealing with the response handling
- DPRINTF(Cache, "Receive response: %s for addr %#llx (%s) in state %i\n",
- bus_pkt->cmdString(), bus_pkt->getAddr(),
+ DPRINTF(Cache, "Receive response: %s for addr %#llx (%s) in "
+ "state %i\n", bus_pkt->cmdString(), bus_pkt->getAddr(),
bus_pkt->isSecure() ? "s" : "ns",
old_state);
// Software prefetch handling for cache closest to core
if (tgt_pkt->cmd.isSWPrefetch()) {
- // a software prefetch would have already been ack'd immediately
- // with dummy data so the core would be able to retire it.
- // this request completes right here, so we deallocate it.
+ // a software prefetch would have already been ack'd
+ // immediately with dummy data so the core would be able to
+ // retire it. This request completes right here, so we
+ // deallocate it.
delete tgt_pkt->req;
delete tgt_pkt;
break; // skip response
// allocation failed, block not inserted
return NULL;
} else {
- DPRINTF(Cache, "replacement: replacing %#llx (%s) with %#llx (%s): %s\n",
- repl_addr, blk->isSecure() ? "s" : "ns",
+ DPRINTF(Cache, "replacement: replacing %#llx (%s) with %#llx "
+ "(%s): %s\n", repl_addr, blk->isSecure() ? "s" : "ns",
addr, is_secure ? "s" : "ns",
blk->isDirty() ? "writeback" : "clean");
// above and in it's own cache, a new MemCmd::ReadReq is created that
// downstream caches observe.
if (pkt->mustCheckAbove()) {
- DPRINTF(Cache, "Found addr %#llx in upper level cache for snoop %s from"
- " lower cache\n", pkt->getAddr(), pkt->cmdString());
+ DPRINTF(Cache, "Found addr %#llx in upper level cache for snoop %s "
+ "from lower cache\n", pkt->getAddr(), pkt->cmdString());
pkt->setBlockCached();
return snoop_delay;
}
if (dirty) {
warn("*** The cache still contains dirty data. ***\n");
warn(" Make sure to drain the system using the correct flags.\n");
- warn(" This checkpoint will not restore correctly and dirty data in "
- "the cache will be lost!\n");
+ warn(" This checkpoint will not restore correctly and dirty data "
+ " in the cache will be lost!\n");
}
// Since we don't checkpoint the data in the cache, any dirty data