memtest.cc (8922:17f037ad8918) | memtest.cc (8948:e95ee70f876c) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 41 unchanged lines hidden (view full) --- 50 51using namespace std; 52 53int TESTER_ALLOCATOR=0; 54 55bool 56MemTest::CpuPort::recvTiming(PacketPtr pkt) 57{ | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 41 unchanged lines hidden (view full) --- 50 51using namespace std; 52 53int TESTER_ALLOCATOR=0; 54 55bool 56MemTest::CpuPort::recvTiming(PacketPtr pkt) 57{ |
58 if (pkt->isResponse()) { 59 memtest->completeRequest(pkt); 60 } else { 61 // must be snoop upcall 62 assert(pkt->isRequest()); 63 assert(pkt->getDest() == Packet::Broadcast); 64 } | 58 assert(pkt->isResponse()); 59 memtest->completeRequest(pkt); |
65 return true; 66} 67 | 60 return true; 61} 62 |
68Tick 69MemTest::CpuPort::recvAtomic(PacketPtr pkt) 70{ 71 // must be snoop upcall 72 assert(pkt->isRequest()); 73 assert(pkt->getDest() == Packet::Broadcast); 74 return curTick(); 75} 76 | |
77void | 63void |
78MemTest::CpuPort::recvFunctional(PacketPtr pkt) 79{ 80 //Do nothing if we see one come through 81// if (curTick() != 0)//Supress warning durring initialization 82// warn("Functional Writes not implemented in MemTester\n"); 83 //Need to find any response values that intersect and update 84 return; 85} 86 87void | |
88MemTest::CpuPort::recvRetry() 89{ 90 memtest->doRetry(); 91} 92 93void 94MemTest::sendPkt(PacketPtr pkt) { 95 if (atomic) { --- 332 unchanged lines hidden --- | 64MemTest::CpuPort::recvRetry() 65{ 66 memtest->doRetry(); 67} 68 69void 70MemTest::sendPkt(PacketPtr pkt) { 71 if (atomic) { --- 332 unchanged lines hidden --- |