Fix cache problem with writes to tempBlock
authorSteve Reinhardt <stever@gmail.com>
Sun, 23 Mar 2008 02:17:15 +0000 (22:17 -0400)
committerSteve Reinhardt <stever@gmail.com>
Sun, 23 Mar 2008 02:17:15 +0000 (22:17 -0400)
getting wrong writeback address.

--HG--
extra : convert_revision : 023dfb69c227c13a69bfe2744c6af75a45828b0b

src/mem/cache/cache_impl.hh

index cf9528a75898495e908bcd497e4b1495b6be0320..2f4567e0d2f71c67f372e44e644e9bc0741ea0d5 100644 (file)
@@ -941,6 +941,7 @@ Cache<TagStore>::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 {