Deleted Added
sdiff udiff text old ( 4666:5d110d024fcf ) new ( 4670:54ac1fb49a26 )
full compact
1/*
2 * Copyright (c) 2006 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;

--- 55 unchanged lines hidden (view full) ---

64{
65 // If the device is only a slave, it should only be sending
66 // responses, which should never get nacked. There used to be
67 // code to hanldle nacks here, but I'm pretty sure it didn't work
68 // correctly with the drain code, so that would need to be fixed
69 // if we ever added it back.
70 assert(pkt->isRequest());
71 assert(pkt->result == Packet::Unknown);
72
73 if (pkt->memInhibitAsserted()) {
74 // snooper will supply based on copy of packet
75 // still target's responsibility to delete packet
76 delete pkt->req;
77 delete pkt;
78 return true;
79 }
80
81 bool needsResponse = pkt->needsResponse();
82 Tick latency = recvAtomic(pkt);
83 // turn packet around to go back to requester if response expected
84 if (needsResponse) {
85 // recvAtomic() should already have turned packet into
86 // atomic response
87 assert(pkt->isResponse());
88 pkt->convertAtomicToTimingResponse();
89 schedSendTiming(pkt, curTick + latency);
90 } else {
91 delete pkt->req;
92 delete pkt;
93 }
94
95 return true;
96}
97
98
99void
100SimpleTimingPort::schedSendTiming(PacketPtr pkt, Tick when)
101{
102 assert(when > curTick);

--- 87 unchanged lines hidden ---