diff --git a/src/mem/cache/base.cc b/src/mem/cache/base.cc index 4b7333c1ef..fc2115a2a5 100644 --- a/src/mem/cache/base.cc +++ b/src/mem/cache/base.cc @@ -1310,7 +1310,7 @@ BaseCache::handleFill(PacketPtr pkt, CacheBlk *blk, PacketList &writebacks, Addr addr = pkt->getAddr(); bool is_secure = pkt->isSecure(); #if TRACING_ON - CacheBlk::State old_state = blk ? blk->status : 0; + const std::string old_state = blk ? blk->print() : ""; #endif // When handling a fill, we should have no writes to this line. @@ -1380,7 +1380,7 @@ BaseCache::handleFill(PacketPtr pkt, CacheBlk *blk, PacketList &writebacks, } } - DPRINTF(Cache, "Block addr %#llx (%s) moving from state %x to %s\n", + DPRINTF(Cache, "Block addr %#llx (%s) moving from %s to %s\n", addr, is_secure ? "s" : "ns", old_state, blk->print()); // if we got new data, copy it in (checking for a read response diff --git a/src/mem/cache/cache.cc b/src/mem/cache/cache.cc index a46404b69e..8e45ea3474 100644 --- a/src/mem/cache/cache.cc +++ b/src/mem/cache/cache.cc @@ -590,7 +590,7 @@ Cache::handleAtomicReqMiss(PacketPtr pkt, CacheBlk *&blk, bus_pkt->print()); #if TRACING_ON - CacheBlk::State old_state = blk ? blk->status : 0; + const std::string old_state = blk ? blk->print() : ""; #endif Cycles latency = ticksToCycles(memSidePort.sendAtomic(bus_pkt)); @@ -598,7 +598,7 @@ Cache::handleAtomicReqMiss(PacketPtr pkt, CacheBlk *&blk, bool is_invalidate = bus_pkt->isInvalidate(); // We are now dealing with the response handling - DPRINTF(Cache, "%s: Receive response: %s in state %i\n", __func__, + DPRINTF(Cache, "%s: Receive response: %s for %s\n", __func__, bus_pkt->print(), old_state); // If packet was a forward, the response (if any) is already