mem: Fix latency handling in MemDelay
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Wed, 13 May 2020 14:44:35 +0000 (15:44 +0100)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 16 Jun 2020 16:13:43 +0000 (16:13 +0000)
commit35d9bf99a8f8e0a57d37c12227d1e1d33505c4e7
tree7c5e2781ca1fe9a553060996b05130147de5b96c
parentd3024accaf29b4a35bf7d1a0a0beeda05787100c
mem: Fix latency handling in MemDelay

MemDelay wouldn't consume pre-existing delays in the packet and
therefore the latency it adds would overlap with them. This patch
fixes the MemDelay to properly account for them.

Change-Id: I7330fbf1c8161a21523a0b4aab31c72e34bce650
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30055
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/mem_delay.cc