memory system: fix functional access bug.

Make sure not to keep processing functional accesses
after they've been responded to.
Also use checkFunctional() return value instead of checking
packet command field where possible, mostly just for consistency.

--HG--
extra : convert_revision : 29fc76bc18731bd93a4ed05a281297827028ef75
This commit is contained in:
Steve Reinhardt
2007-07-29 20:17:03 -07:00
parent 08474ccf68
commit 2f93db6f95
5 changed files with 20 additions and 19 deletions

View File

@@ -81,9 +81,9 @@ BaseCache::CachePort::deviceBlockSize()
void
BaseCache::CachePort::checkAndSendFunctional(PacketPtr pkt)
{
checkFunctional(pkt);
if (!pkt->isResponse())
if (!checkFunctional(pkt)) {
sendFunctional(pkt);
}
}