summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/probe/mem.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sim/probe/mem.hh b/src/sim/probe/mem.hh
index 2d4b9aeec..f17815bab 100644
--- a/src/sim/probe/mem.hh
+++ b/src/sim/probe/mem.hh
@@ -56,12 +56,14 @@ struct PacketInfo {
Addr addr;
uint32_t size;
Request::FlagsType flags;
+ Addr pc;
explicit PacketInfo(const PacketPtr& pkt) :
cmd(pkt->cmd),
addr(pkt->getAddr()),
size(pkt->getSize()),
- flags(pkt->req->getFlags()) { }
+ flags(pkt->req->getFlags()),
+ pc(pkt->req->hasPC() ? pkt->req->getPC() : 0) { }
};
/**