diff options
author | Victor Garcia <victor.garcia@arm.com> | 2016-04-07 11:32:38 -0500 |
---|---|---|
committer | Victor Garcia <victor.garcia@arm.com> | 2016-04-07 11:32:38 -0500 |
commit | df5a81183303fa941d71e866ff8d258e4d6a510e (patch) | |
tree | 9a3b6d1cec6ac0a672480ad477090d743af54e0d /src/sim/probe | |
parent | a3bf4aa6ec9caa68a558f7347d55991f7a254fa5 (diff) | |
download | gem5-df5a81183303fa941d71e866ff8d258e4d6a510e.tar.xz |
mem: Add Program Counter to MemTraceProbe
Diffstat (limited to 'src/sim/probe')
-rw-r--r-- | src/sim/probe/mem.hh | 4 |
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) { } }; /** |