Hi
What does temp block mean? According to the code:
// need to do a replacement
blk = allocateBlock(addr, writebacks);
if (blk == NULL) {
// No replaceable block... just use temporary storage to
// complete the current request and then get rid of it
assert(!tempBlock->isValid());
blk = tempBlock;
tempBlock->set = tags->extractSet(addr);
tempBlock->tag = tags->extractTag(addr);
DPRINTF(Cache, "using temp block for %x\n", addr);
} else {
int id = pkt->req->masterId();
tags->insertBlock(pkt->getAddr(), blk, id);
}
I would say, when blk==NULL, then surely a replacement is needed. So
what is temprary block? The comment doesn't give such information.
--
// Naderan *Mahmood;
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users