mem: Record the request master ID in the PacketInfo structure.
authorGabe Black <gabeblack@google.com>
Fri, 1 Sep 2017 11:22:59 +0000 (04:22 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 25 Sep 2017 21:13:24 +0000 (21:13 +0000)
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>

src/sim/probe/mem.hh

index f17815babda1ea70b06492cf5b906ccfb81ce4c9..2767f9338234ae00853d89012802654bc159cc04 100644 (file)
@@ -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())  { }
 };
 
 /**