From 8a761c44af607c1a05642d32cbaa6b97106e6b7d Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Sat, 3 Oct 2009 18:07:39 -0700 Subject: bus: add assertion to catch illegal retry on mem-inhibited transaction. --- src/mem/bus.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/mem/bus.cc b/src/mem/bus.cc index 001c37a24..cac08d1a8 100644 --- a/src/mem/bus.cc +++ b/src/mem/bus.cc @@ -244,6 +244,9 @@ Bus::recvTiming(PacketPtr pkt) // Packet not successfully sent. Leave or put it on the retry list. // illegal to block responses... can lead to deadlock assert(!pkt->isResponse()); + // It's also illegal to force a transaction to retry after + // someone else has committed to respond. + assert(!pkt->memInhibitAsserted()); DPRINTF(Bus, "recvTiming: src %d dst %d %s 0x%x TGT RETRY\n", src, pkt->getDest(), pkt->cmdString(), pkt->getAddr()); addToRetryList(src_port); -- cgit v1.2.3