mem: Use debug trace instead of warn for default backdoor

By default backdoor access fall back to atomic if not
implemented in the ResponsePort. Given this is a common
behavior for most of the IPs, having them print all the
warning creates large number of warning in a big system.

Ideally we want to make this a debug level log, but this
can only be done through the debug trace mechanism.

Change-Id: I8a4074fc58b13c1881ad62897a89774c66880ccb
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60790
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
Earl Ou
2022-06-28 12:32:18 +00:00
parent c0ca47b6ed
commit e54efbd8e9
2 changed files with 4 additions and 1 deletions

View File

@@ -145,6 +145,7 @@ DebugFlag('MemCtrl')
DebugFlag('MMU')
DebugFlag('MemoryAccess')
DebugFlag('PacketQueue')
DebugFlag('ResponsePort')
DebugFlag('StackDist')
DebugFlag("DRAMSim2")
DebugFlag("DRAMsim3")

View File

@@ -45,6 +45,7 @@
#include "mem/port.hh"
#include "base/trace.hh"
#include "debug/ResponsePort.hh"
#include "sim/sim_object.hh"
namespace gem5
@@ -197,7 +198,8 @@ Tick
ResponsePort::recvAtomicBackdoor(PacketPtr pkt, MemBackdoorPtr &backdoor)
{
if (!defaultBackdoorWarned) {
warn("Port %s doesn't support requesting a back door.", name());
DPRINTF(ResponsePort,
"Port %s doesn't support requesting a back door.", name());
defaultBackdoorWarned = true;
}
return recvAtomic(pkt);