packet_queue.cc (9152:86c0e6ca5e7c) | packet_queue.cc (9160:584662eaaecf) |
---|---|
1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 92 unchanged lines hidden (view full) --- 101 } else if (sendEvent.when() > when) { 102 em.reschedule(&sendEvent, when); 103 } 104} 105 106void 107PacketQueue::schedSendTiming(PacketPtr pkt, Tick when, bool send_as_snoop) 108{ | 1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 92 unchanged lines hidden (view full) --- 101 } else if (sendEvent.when() > when) { 102 em.reschedule(&sendEvent, when); 103 } 104} 105 106void 107PacketQueue::schedSendTiming(PacketPtr pkt, Tick when, bool send_as_snoop) 108{ |
109 assert(when > curTick()); | 109 // we can still send a packet before the end of this tick 110 assert(when >= curTick()); |
110 111 // nothing on the list, or earlier than current front element, 112 // schedule an event 113 if (transmitList.empty() || when < transmitList.front().tick) { 114 // note that currently we ignore a potentially outstanding retry 115 // and could in theory put a new packet at the head of the 116 // transmit list before retrying the existing packet 117 transmitList.push_front(DeferredPacket(when, pkt, send_as_snoop)); --- 123 unchanged lines hidden --- | 111 112 // nothing on the list, or earlier than current front element, 113 // schedule an event 114 if (transmitList.empty() || when < transmitList.front().tick) { 115 // note that currently we ignore a potentially outstanding retry 116 // and could in theory put a new packet at the head of the 117 // transmit list before retrying the existing packet 118 transmitList.push_front(DeferredPacket(when, pkt, send_as_snoop)); --- 123 unchanged lines hidden --- |