From 70acf7f19863d769f8deb654d77f1087a84c30cc Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 1 Sep 2017 04:22:59 -0700 Subject: [PATCH] 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 Reviewed-on: https://gem5-review.googlesource.com/4780 Reviewed-by: Nikos Nikoleris Maintainer: Nikos Nikoleris --- src/sim/probe/mem.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()) { } }; /** -- 2.30.2