From: Gabe Black Date: Fri, 1 Sep 2017 11:22:59 +0000 (-0700) Subject: mem: Record the request master ID in the PacketInfo structure. X-Git-Tag: v19.0.0.0~2631 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70acf7f19863d769f8deb654d77f1087a84c30cc;p=gem5.git 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 --- 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()) { } }; /**