summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-03-26 14:46:44 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2013-03-26 14:46:44 -0400
commit7a57b1bce07030cd81069fc6978530eb7e83b45d (patch)
tree79702b29dd8a1337371d58d6fd6792480e852fdb /src/mem
parent08c1835bef5caa72dc931ed529e4ed3470989d4f (diff)
downloadgem5-7a57b1bce07030cd81069fc6978530eb7e83b45d.tar.xz
mem: Add optional request flags to the packet trace
This patch adds an optional flags field to the packet trace to encode the request flags that contain information about whether the request is (un)cacheable, instruction fetch, preftech etc.
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/comm_monitor.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mem/comm_monitor.cc b/src/mem/comm_monitor.cc
index a6c08e3b2..d21741b20 100644
--- a/src/mem/comm_monitor.cc
+++ b/src/mem/comm_monitor.cc
@@ -163,6 +163,7 @@ CommMonitor::recvTimingReq(PacketPtr pkt)
bool isRead = pkt->isRead();
bool isWrite = pkt->isWrite();
int cmd = pkt->cmdToIndex();
+ Request::FlagsType req_flags = pkt->req->getFlags();
unsigned size = pkt->getSize();
Addr addr = pkt->getAddr();
bool needsResponse = pkt->needsResponse();
@@ -192,6 +193,7 @@ CommMonitor::recvTimingReq(PacketPtr pkt)
Message::Packet pkt_msg;
pkt_msg.set_tick(curTick());
pkt_msg.set_cmd(cmd);
+ pkt_msg.set_flags(req_flags);
pkt_msg.set_addr(addr);
pkt_msg.set_size(size);