From 5fe43e8496453828cd45a2bfce74bd8c46627fe7 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Fri, 26 Jun 2020 12:12:46 +0100 Subject: [PATCH] cpu: differentiate snoop DPRINTF messages for AtomicSimpleCPU Those three snoop messages were the same, which made interpreting logs harder. Change-Id: Ibff092932bc6d2ef0c5f15bf5f7ce031d1f1956b Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30694 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/cpu/simple/atomic.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cpu/simple/atomic.cc b/src/cpu/simple/atomic.cc index c57fe14d2..d7a914ae0 100644 --- a/src/cpu/simple/atomic.cc +++ b/src/cpu/simple/atomic.cc @@ -125,8 +125,8 @@ AtomicSimpleCPU::drain() void AtomicSimpleCPU::threadSnoop(PacketPtr pkt, ThreadID sender) { - DPRINTF(SimpleCPU, "received snoop pkt for addr:%#x %s\n", pkt->getAddr(), - pkt->cmdString()); + DPRINTF(SimpleCPU, "%s received snoop pkt for addr:%#x %s\n", + __func__, pkt->getAddr(), pkt->cmdString()); for (ThreadID tid = 0; tid < numThreads; tid++) { if (tid != sender) { @@ -280,8 +280,8 @@ AtomicSimpleCPU::sendPacket(MasterPort &port, const PacketPtr &pkt) Tick AtomicSimpleCPU::AtomicCPUDPort::recvAtomicSnoop(PacketPtr pkt) { - DPRINTF(SimpleCPU, "received snoop pkt for addr:%#x %s\n", pkt->getAddr(), - pkt->cmdString()); + DPRINTF(SimpleCPU, "%s received atomic snoop pkt for addr:%#x %s\n", + __func__, pkt->getAddr(), pkt->cmdString()); // X86 ISA: Snooping an invalidation for monitor/mwait AtomicSimpleCPU *cpu = (AtomicSimpleCPU *)(&owner); @@ -310,8 +310,8 @@ AtomicSimpleCPU::AtomicCPUDPort::recvAtomicSnoop(PacketPtr pkt) void AtomicSimpleCPU::AtomicCPUDPort::recvFunctionalSnoop(PacketPtr pkt) { - DPRINTF(SimpleCPU, "received snoop pkt for addr:%#x %s\n", pkt->getAddr(), - pkt->cmdString()); + DPRINTF(SimpleCPU, "%s received functional snoop pkt for addr:%#x %s\n", + __func__, pkt->getAddr(), pkt->cmdString()); // X86 ISA: Snooping an invalidation for monitor/mwait AtomicSimpleCPU *cpu = (AtomicSimpleCPU *)(&owner); -- 2.30.2