mem-cache: Use header delay on latency calculation
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Tue, 4 Dec 2018 12:23:18 +0000 (13:23 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Thu, 7 Mar 2019 13:07:09 +0000 (13:07 +0000)
commit97281129c9b24ce51d4c9ad2f5bba4b15c375e14
treeccb4137833e783b988a562fc1fdab8dc2c36154a
parent6c00d57cce58973094e9cacd1bf3431a3407e866
mem-cache: Use header delay on latency calculation

Previously the bus delay was being ignored for the access latency
calculation, and then applied on top of the access latency. This
patch fixes the order, as first the packet must arrive before the
access starts.

Change-Id: I6d55299a911d54625c147814dd423bfc63ef1b65
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/14876
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/base.cc
src/mem/cache/base.hh