mem: port: add address value in the port trace

Add the address value from the packet with the request port name.

Change-Id: I3d4c75f48ca6fbdbd5656e594d5f85f9e5626be8
This commit is contained in:
Yan Lee
2023-08-15 00:31:57 -07:00
parent 41dcd3c5d5
commit 5edb760414
2 changed files with 3 additions and 3 deletions

View File

@@ -197,7 +197,7 @@ RequestPort::addTrace(PacketPtr pkt) const
ext = std::make_shared<TracingExtension>();
pkt->setExtension(ext);
}
ext->add(name(), _responsePort->name());
ext->add(name(), _responsePort->name(), pkt->getAddr());
}
void

View File

@@ -85,9 +85,9 @@ class TracingExtension : public gem5::Extension<Packet, TracingExtension>
}
void
add(std::string request_port, std::string response_port)
add(std::string request_port, std::string response_port, gem5::Addr addr)
{
trace_.push(request_port);
trace_.push(request_port + csprintf(" addr=%#llx", addr));
trace_.push(response_port);
}