comm_monitor.cc (10713:eddb533708cb) comm_monitor.cc (10744:116c6cd45fff)
1/*
1/*
2 * Copyright (c) 2012-2013 ARM Limited
2 * Copyright (c) 2012-2013, 2015 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

171CommMonitor::recvFunctionalSnoop(PacketPtr pkt)
172{
173 slavePort.sendFunctionalSnoop(pkt);
174}
175
176Tick
177CommMonitor::recvAtomic(PacketPtr pkt)
178{
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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

171CommMonitor::recvFunctionalSnoop(PacketPtr pkt)
172{
173 slavePort.sendFunctionalSnoop(pkt);
174}
175
176Tick
177CommMonitor::recvAtomic(PacketPtr pkt)
178{
179 // allow stack distance calculations for atomic if enabled
179 // do stack distance calculations if enabled
180 if (stackDistCalc)
181 stackDistCalc->update(pkt->cmd, pkt->getAddr());
182
180 if (stackDistCalc)
181 stackDistCalc->update(pkt->cmd, pkt->getAddr());
182
183 // if tracing enabled, store the packet information
184 // to the trace stream
185 if (traceStream != NULL) {
186 ProtoMessage::Packet pkt_msg;
187 pkt_msg.set_tick(curTick());
188 pkt_msg.set_cmd(pkt->cmdToIndex());
189 pkt_msg.set_flags(pkt->req->getFlags());
190 pkt_msg.set_addr(pkt->getAddr());
191 pkt_msg.set_size(pkt->getSize());
192
193 traceStream->write(pkt_msg);
194 }
195
183 return masterPort.sendAtomic(pkt);
184}
185
186Tick
187CommMonitor::recvAtomicSnoop(PacketPtr pkt)
188{
189 return slavePort.sendAtomicSnoop(pkt);
190}

--- 427 unchanged lines hidden ---
196 return masterPort.sendAtomic(pkt);
197}
198
199Tick
200CommMonitor::recvAtomicSnoop(PacketPtr pkt)
201{
202 return slavePort.sendAtomicSnoop(pkt);
203}

--- 427 unchanged lines hidden ---