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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user