summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2007-07-15 21:03:12 -0700
committerSteve Reinhardt <stever@eecs.umich.edu>2007-07-15 21:03:12 -0700
commitf67c8b33cc57d38b102154c540456ee2c0444e63 (patch)
tree0ffd269daf38ff66aaaf870dd6ccb1abae844cbb /src/cpu
parente80ab26abc325db0c99b153aa9758ad0df66c77c (diff)
downloadgem5-f67c8b33cc57d38b102154c540456ee2c0444e63.tar.xz
Fix bug with timing snoop upcalls to MemTest object.
--HG-- extra : convert_revision : 1940a5d231b4f856cf69578f68ea98435824dbd8
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/memtest/memtest.cc8
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;
}