mem: Change DPRINTF prints more useful destination port number.
Old code prints 0 for destination since pkt->getDest() returns 0 for pkt->getDest() == Packet::Broadcast, which is always true.
This commit is contained in:
parent
d2c26f402c
commit
c94e5256d9
|
@ -447,13 +447,6 @@ Bus::recvAtomic(PacketPtr pkt)
|
|||
void
|
||||
Bus::recvFunctional(PacketPtr pkt)
|
||||
{
|
||||
if (!pkt->isPrint()) {
|
||||
// don't do DPRINTFs on PrintReq as it clutters up the output
|
||||
DPRINTF(Bus,
|
||||
"recvFunctional: packet src %d dest %d addr 0x%x cmd %s\n",
|
||||
pkt->getSrc(), pkt->getDest(), pkt->getAddr(),
|
||||
pkt->cmdString());
|
||||
}
|
||||
assert(pkt->getDest() == Packet::Broadcast);
|
||||
|
||||
int port_id = findPort(pkt->getAddr());
|
||||
|
@ -462,6 +455,14 @@ Bus::recvFunctional(PacketPtr pkt)
|
|||
// id after each
|
||||
int src_id = pkt->getSrc();
|
||||
|
||||
if (!pkt->isPrint()) {
|
||||
// don't do DPRINTFs on PrintReq as it clutters up the output
|
||||
DPRINTF(Bus,
|
||||
"recvFunctional: packet src %d dest %d addr 0x%x cmd %s\n",
|
||||
src_id, port_id, pkt->getAddr(),
|
||||
pkt->cmdString());
|
||||
}
|
||||
|
||||
assert(pkt->isRequest()); // hasn't already been satisfied
|
||||
|
||||
SnoopIter s_end = snoopPorts.end();
|
||||
|
|
Loading…
Reference in a new issue