From: Steve Reinhardt Date: Sun, 4 Oct 2009 01:07:39 +0000 (-0700) Subject: bus: add assertion to catch illegal retry X-Git-Tag: stable_2012_02_02~1714 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a761c44af607c1a05642d32cbaa6b97106e6b7d;p=gem5.git bus: add assertion to catch illegal retry on mem-inhibited transaction. --- 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);