diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2014-09-03 07:42:28 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2014-09-03 07:42:28 -0400 |
commit | 77c28cc3956d32282f71d8eadbd5fff0fec836e8 (patch) | |
tree | de4b2ea9bc2b85ddd143b09b6d3cb14f79cb1b27 /src/mem/packet_queue.hh | |
parent | 71769d2d7b094580b7a4437bf8d8e1401c418c4d (diff) | |
download | gem5-77c28cc3956d32282f71d8eadbd5fff0fec836e8.tar.xz |
mem: Packet queue clean up
No change in functionality, just a bit of tidying up.
Diffstat (limited to 'src/mem/packet_queue.hh')
-rw-r--r-- | src/mem/packet_queue.hh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mem/packet_queue.hh b/src/mem/packet_queue.hh index b3df8d71f..3ed3fae28 100644 --- a/src/mem/packet_queue.hh +++ b/src/mem/packet_queue.hh @@ -78,7 +78,6 @@ class PacketQueue : public Drainable }; typedef std::list<DeferredPacket> DeferredPacketList; - typedef std::list<DeferredPacket>::iterator DeferredPacketIterator; /** A list of outgoing timing response packets that haven't been * serviced yet. */ @@ -109,10 +108,10 @@ class PacketQueue : public Drainable bool waitingOnRetry; /** Check whether we have a packet ready to go on the transmit list. */ - bool deferredPacketReady() + bool deferredPacketReady() const { return !transmitList.empty() && transmitList.front().tick <= curTick(); } - Tick deferredPacketReadyTime() + Tick deferredPacketReadyTime() const { return transmitList.empty() ? MaxTick : transmitList.front().tick; } /** |