diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2007-07-15 21:03:12 -0700 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2007-07-15 21:03:12 -0700 |
commit | f67c8b33cc57d38b102154c540456ee2c0444e63 (patch) | |
tree | 0ffd269daf38ff66aaaf870dd6ccb1abae844cbb | |
parent | e80ab26abc325db0c99b153aa9758ad0df66c77c (diff) | |
download | gem5-f67c8b33cc57d38b102154c540456ee2c0444e63.tar.xz |
Fix bug with timing snoop upcalls to MemTest object.
--HG--
extra : convert_revision : 1940a5d231b4f856cf69578f68ea98435824dbd8
-rw-r--r-- | src/cpu/memtest/memtest.cc | 8 |
1 files changed, 7 insertions, 1 deletions
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; } |