comm_monitor.cc (9542:683991c46ac8) comm_monitor.cc (9609:2904589daa6b)
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 149 unchanged lines hidden (view full) ---

158 // should always see a request
159 assert(pkt->isRequest());
160
161 // Store relevant fields of packet, because packet may be modified
162 // or even deleted when sendTiming() is called.
163 bool isRead = pkt->isRead();
164 bool isWrite = pkt->isWrite();
165 int cmd = pkt->cmdToIndex();
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 149 unchanged lines hidden (view full) ---

158 // should always see a request
159 assert(pkt->isRequest());
160
161 // Store relevant fields of packet, because packet may be modified
162 // or even deleted when sendTiming() is called.
163 bool isRead = pkt->isRead();
164 bool isWrite = pkt->isWrite();
165 int cmd = pkt->cmdToIndex();
166 Request::FlagsType req_flags = pkt->req->getFlags();
166 unsigned size = pkt->getSize();
167 Addr addr = pkt->getAddr();
168 bool needsResponse = pkt->needsResponse();
169 bool memInhibitAsserted = pkt->memInhibitAsserted();
170
171 // If a cache miss is served by a cache, a monitor near the memory
172 // would see a request which needs a response, but this response
173 // would be inhibited and not come back from the memory. Therefore

--- 13 unchanged lines hidden (view full) ---

187
188 if (successful && traceStream != NULL) {
189 // Create a protobuf message representing the
190 // packet. Currently we do not preserve the flags in the
191 // trace.
192 Message::Packet pkt_msg;
193 pkt_msg.set_tick(curTick());
194 pkt_msg.set_cmd(cmd);
167 unsigned size = pkt->getSize();
168 Addr addr = pkt->getAddr();
169 bool needsResponse = pkt->needsResponse();
170 bool memInhibitAsserted = pkt->memInhibitAsserted();
171
172 // If a cache miss is served by a cache, a monitor near the memory
173 // would see a request which needs a response, but this response
174 // would be inhibited and not come back from the memory. Therefore

--- 13 unchanged lines hidden (view full) ---

188
189 if (successful && traceStream != NULL) {
190 // Create a protobuf message representing the
191 // packet. Currently we do not preserve the flags in the
192 // trace.
193 Message::Packet pkt_msg;
194 pkt_msg.set_tick(curTick());
195 pkt_msg.set_cmd(cmd);
196 pkt_msg.set_flags(req_flags);
195 pkt_msg.set_addr(addr);
196 pkt_msg.set_size(size);
197
198 traceStream->write(pkt_msg);
199 }
200
201 if (successful && isRead) {
202 DPRINTF(CommMonitor, "Forwarded read request\n");

--- 383 unchanged lines hidden ---
197 pkt_msg.set_addr(addr);
198 pkt_msg.set_size(size);
199
200 traceStream->write(pkt_msg);
201 }
202
203 if (successful && isRead) {
204 DPRINTF(CommMonitor, "Forwarded read request\n");

--- 383 unchanged lines hidden ---