tport.cc (3450:4dbe91f2b2cf) | tport.cc (3605:ed3c5b4e8bca) |
---|---|
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; --- 21 unchanged lines hidden (view full) --- 30 31#include "mem/tport.hh" 32 33void 34SimpleTimingPort::recvFunctional(PacketPtr pkt) 35{ 36 std::list<std::pair<Tick,PacketPtr> >::iterator i = transmitList.begin(); 37 std::list<std::pair<Tick,PacketPtr> >::iterator end = transmitList.end(); | 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; --- 21 unchanged lines hidden (view full) --- 30 31#include "mem/tport.hh" 32 33void 34SimpleTimingPort::recvFunctional(PacketPtr pkt) 35{ 36 std::list<std::pair<Tick,PacketPtr> >::iterator i = transmitList.begin(); 37 std::list<std::pair<Tick,PacketPtr> >::iterator end = transmitList.end(); |
38 bool done = false; | 38 bool notDone = true; |
39 | 39 |
40 while (i != end && !done) { | 40 while (i != end && notDone) { |
41 PacketPtr target = i->second; 42 // If the target contains data, and it overlaps the 43 // probed request, need to update data 44 if (target->intersect(pkt)) | 41 PacketPtr target = i->second; 42 // If the target contains data, and it overlaps the 43 // probed request, need to update data 44 if (target->intersect(pkt)) |
45 done = fixPacket(pkt, target); | 45 notDone = fixPacket(pkt, target); |
46 47 i++; 48 } 49 50 //Then just do an atomic access and throw away the returned latency 51 if (pkt->result != Packet::Success) 52 recvAtomic(pkt); 53} --- 105 unchanged lines hidden --- | 46 47 i++; 48 } 49 50 //Then just do an atomic access and throw away the returned latency 51 if (pkt->result != Packet::Success) 52 recvAtomic(pkt); 53} --- 105 unchanged lines hidden --- |