From: Steve Reinhardt Date: Mon, 16 Jul 2007 04:03:12 +0000 (-0700) Subject: Fix bug with timing snoop upcalls to MemTest object. X-Git-Tag: m5_2.0_beta4~195^2~48 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f67c8b33cc57d38b102154c540456ee2c0444e63;p=gem5.git Fix bug with timing snoop upcalls to MemTest object. --HG-- extra : convert_revision : 1940a5d231b4f856cf69578f68ea98435824dbd8 --- diff --git a/src/cpu/memtest/memtest.cc b/src/cpu/memtest/memtest.cc index f5c8bb93b..77816e8d1 100644 --- a/src/cpu/memtest/memtest.cc +++ b/src/cpu/memtest/memtest.cc @@ -57,7 +57,13 @@ int TESTER_ALLOCATOR=0; bool MemTest::CpuPort::recvTiming(PacketPtr pkt) { - memtest->completeRequest(pkt); + if (pkt->isResponse()) { + memtest->completeRequest(pkt); + } else { + // must be snoop upcall + assert(pkt->isRequest()); + assert(pkt->getDest() == Packet::Broadcast); + } return true; }