simple_mem.cc (13854:45d90a16247b) simple_mem.cc (13860:8f8df5b68439)
1/*
2 * Copyright (c) 2010-2013, 2015 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

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

169 // typically this should be added at the end, so start the
170 // insertion sort with the last element, also make sure not to
171 // re-order in front of some existing packet with the same
172 // address, the latter is important as this memory effectively
173 // hands out exclusive copies (shared is not asserted)
174 auto i = packetQueue.end();
175 --i;
176 while (i != packetQueue.begin() && when_to_send < i->tick &&
1/*
2 * Copyright (c) 2010-2013, 2015 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

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

169 // typically this should be added at the end, so start the
170 // insertion sort with the last element, also make sure not to
171 // re-order in front of some existing packet with the same
172 // address, the latter is important as this memory effectively
173 // hands out exclusive copies (shared is not asserted)
174 auto i = packetQueue.end();
175 --i;
176 while (i != packetQueue.begin() && when_to_send < i->tick &&
177 i->pkt->getAddr() != pkt->getAddr())
177 !i->pkt->matchAddr(pkt))
178 --i;
179
180 // emplace inserts the element before the position pointed to by
181 // the iterator, so advance it one step
182 packetQueue.emplace(++i, pkt, when_to_send);
183
184 if (!retryResp && !dequeueEvent.scheduled())
185 schedule(dequeueEvent, packetQueue.back().tick);

--- 128 unchanged lines hidden ---
178 --i;
179
180 // emplace inserts the element before the position pointed to by
181 // the iterator, so advance it one step
182 packetQueue.emplace(++i, pkt, when_to_send);
183
184 if (!retryResp && !dequeueEvent.scheduled())
185 schedule(dequeueEvent, packetQueue.back().tick);

--- 128 unchanged lines hidden ---