From f67c8b33cc57d38b102154c540456ee2c0444e63 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Sun, 15 Jul 2007 21:03:12 -0700 Subject: [PATCH] Fix bug with timing snoop upcalls to MemTest object. --HG-- extra : convert_revision : 1940a5d231b4f856cf69578f68ea98435824dbd8 --- src/cpu/memtest/memtest.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.30.2