summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-09-01 04:22:59 -0700
committerGabe Black <gabeblack@google.com>2017-09-25 21:13:24 +0000
commit70acf7f19863d769f8deb654d77f1087a84c30cc (patch)
tree696404e3e9344c6a083be2385e36f1343a9ecc09
parent1b48d293c4e7bb07dbd73b1759f119c5d32563c7 (diff)
downloadgem5-70acf7f19863d769f8deb654d77f1087a84c30cc.tar.xz
mem: Record the request master ID in the PacketInfo structure.
That can be recorded in a packet trace. Change-Id: I3813ab4ea5aadeb40b355ff01f10e8ecab2bb790 Reviewed-on: https://soc-sim-internal-review.googlesource.com/3482 Reviewed-by: Rahul Thakur <rjthakur@google.com> Reviewed-on: https://gem5-review.googlesource.com/4780 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
-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 f17815bab..2767f9338 100644
--- a/src/sim/probe/mem.hh
+++ b/src/sim/probe/mem.hh
@@ -57,13 +57,15 @@ struct PacketInfo {
uint32_t size;
Request::FlagsType flags;
Addr pc;
+ MasterID master;
explicit PacketInfo(const PacketPtr& pkt) :
cmd(pkt->cmd),
addr(pkt->getAddr()),
size(pkt->getSize()),
flags(pkt->req->getFlags()),
- pc(pkt->req->hasPC() ? pkt->req->getPC() : 0) { }
+ pc(pkt->req->hasPC() ? pkt->req->getPC() : 0),
+ master(pkt->req->masterId()) { }
};
/**