118,120c118,121
< * nullptr is returned. This has all the implications of a cache
< * access and should only be used as such. Returns the access latency as a
< * side effect.
---
> * nullptr is returned. This has all the implications of a cache access and
> * should only be used as such. Returns the tag lookup latency as a side
> * effect.
> *
123c124
< * @param lat The access latency.
---
> * @param lat The latency of the tag lookup.
141a143
> // If a cache hit
143,153d144
< // If a cache hit
< lat = accessLatency;
< // Check if the block to be accessed is available. If not,
< // apply the accessLatency on top of block->whenReady.
< if (blk->whenReady > curTick() &&
< cache->ticksToCycles(blk->whenReady - curTick()) >
< accessLatency) {
< lat = cache->ticksToCycles(blk->whenReady - curTick()) +
< accessLatency;
< }
<
159,161d149
< } else {
< // If a cache miss
< lat = lookupLatency;
163a152,154
> // The tag lookup latency is the same for a hit or a miss
> lat = lookupLatency;
>