From: Steve Reinhardt Date: Sun, 23 Mar 2008 02:17:15 +0000 (-0400) Subject: Fix cache problem with writes to tempBlock X-Git-Tag: copyright_update~15 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=407710d387497f44de53baf0ae60a2c426c1bb74;p=gem5.git Fix cache problem with writes to tempBlock getting wrong writeback address. --HG-- extra : convert_revision : 023dfb69c227c13a69bfe2744c6af75a45828b0b --- diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index cf9528a75..2f4567e0d 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -941,6 +941,7 @@ Cache::handleFill(PacketPtr pkt, BlkType *blk, assert(!tempBlock->isValid()); blk = tempBlock; tempBlock->set = tags->extractSet(addr); + tempBlock->tag = tags->extractTag(addr); DPRINTF(Cache, "using temp block for %x\n", addr); } } else {