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>
This commit is contained in:
6
src/mem/cache/cache.cc
vendored
6
src/mem/cache/cache.cc
vendored
@@ -391,7 +391,7 @@ Cache::handleTimingReqMiss(PacketPtr pkt, CacheBlk *blk, Tick forward_time,
|
||||
|
||||
// request_time is used here, taking into account lat and the delay
|
||||
// charged if the packet comes from the xbar.
|
||||
cpuSidePort.schedTimingResp(pkt, request_time, true);
|
||||
cpuSidePort.schedTimingResp(pkt, request_time);
|
||||
|
||||
// If an outstanding request is in progress (we found an
|
||||
// MSHR) this is set to null
|
||||
@@ -802,7 +802,7 @@ Cache::serviceMSHRTargets(MSHR *mshr, const PacketPtr pkt, CacheBlk *blk)
|
||||
}
|
||||
// Reset the bus additional time as it is now accounted for
|
||||
tgt_pkt->headerDelay = tgt_pkt->payloadDelay = 0;
|
||||
cpuSidePort.schedTimingResp(tgt_pkt, completion_time, true);
|
||||
cpuSidePort.schedTimingResp(tgt_pkt, completion_time);
|
||||
break;
|
||||
|
||||
case MSHR::Target::FromPrefetcher:
|
||||
@@ -932,7 +932,7 @@ Cache::doTimingSupplyResponse(PacketPtr req_pkt, const uint8_t *blk_data,
|
||||
pkt->headerDelay = pkt->payloadDelay = 0;
|
||||
DPRINTF(CacheVerbose, "%s: created response: %s tick: %lu\n", __func__,
|
||||
pkt->print(), forward_time);
|
||||
memSidePort.schedTimingSnoopResp(pkt, forward_time, true);
|
||||
memSidePort.schedTimingSnoopResp(pkt, forward_time);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
|
||||
Reference in New Issue
Block a user