diff options
author | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2018-11-27 16:55:50 +0000 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2019-01-17 11:09:41 +0000 |
commit | ccc50b7355fa9964c6da3ca1de2b3c48b7728bae (patch) | |
tree | 42efb7a18e24b092dd26f80ab4716e2ea581164f /src/mem/qport.hh | |
parent | 1e9f65343c79b2c3b081e785cfec070d25292be7 (diff) | |
download | gem5-ccc50b7355fa9964c6da3ca1de2b3c48b7728bae.tar.xz |
mem: Determine if a packet queue forces ordering at construction
A packet queue is typically used to hold on to packets that are
schedules to be sent in the future or when they need to queue behind
younger packets that have been sent out yet. Due to memory order
requirements, some MemObjects need to maintain the order for packet
(mostly responses) that reference the same cache block.
Prior to this patch the ordering requirements where determined when
the packet was scheduled to be sent. This patch moves the parameter to
the constructor.
Change-Id: Ieb4d94e86bc7514f5036b313ec23ea47dd653164
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15555
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/mem/qport.hh')
-rw-r--r-- | src/mem/qport.hh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mem/qport.hh b/src/mem/qport.hh index 708347a21..77d8dfafa 100644 --- a/src/mem/qport.hh +++ b/src/mem/qport.hh @@ -88,8 +88,8 @@ class QueuedSlavePort : public SlavePort * @param pkt Packet to send * @param when Absolute time (in ticks) to send packet */ - void schedTimingResp(PacketPtr pkt, Tick when, bool force_order = false) - { respQueue.schedSendTiming(pkt, when, force_order); } + void schedTimingResp(PacketPtr pkt, Tick when) + { respQueue.schedSendTiming(pkt, when); } /** Check the list of buffered packets against the supplied * functional request. */ @@ -153,9 +153,8 @@ class QueuedMasterPort : public MasterPort * @param pkt Packet to send * @param when Absolute time (in ticks) to send packet */ - void schedTimingSnoopResp(PacketPtr pkt, Tick when, bool force_order = - false) - { snoopRespQueue.schedSendTiming(pkt, when, force_order); } + void schedTimingSnoopResp(PacketPtr pkt, Tick when) + { snoopRespQueue.schedSendTiming(pkt, when); } /** Check the list of buffered packets against the supplied * functional request. */ |