1/* 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 --- 41 unchanged lines hidden (view full) --- 50 : MemObject(params), 51 masterPort(name() + "-master", *this), 52 slavePort(name() + "-slave", *this), 53 samplePeriodicEvent(this), 54 samplePeriodTicks(params->sample_period), 55 samplePeriod(params->sample_period / SimClock::Float::s), 56 readAddrMask(params->read_addr_mask), 57 writeAddrMask(params->write_addr_mask), |
58 system(params->system), 59 traceStream(nullptr), 60 stats(params) 61{ 62 // If we are using a trace file, then open the file 63 if (params->trace_enable) { 64 std::string filename; 65 if (params->trace_file != "") { --- 111 unchanged lines hidden (view full) --- 177 slavePort.sendFunctionalSnoop(pkt); 178} 179 180Tick 181CommMonitor::recvAtomic(PacketPtr pkt) 182{ 183 ppPktReq->notify(pkt); 184 |
185 // if tracing enabled, store the packet information 186 // to the trace stream 187 if (traceStream != NULL) { 188 ProtoMessage::Packet pkt_msg; 189 pkt_msg.set_tick(curTick()); 190 pkt_msg.set_cmd(pkt->cmdToIndex()); 191 pkt_msg.set_flags(pkt->req->getFlags()); 192 pkt_msg.set_addr(pkt->getAddr()); --- 55 unchanged lines hidden (view full) --- 248 // means we need to fake the original packet by temporarily 249 // restoring the command. 250 const MemCmd response_cmd(pkt->cmd); 251 pkt->cmd = cmd; 252 ppPktReq->notify(pkt); 253 pkt->cmd = response_cmd; 254 } 255 |
256 if (successful && traceStream != NULL) { 257 // Create a protobuf message representing the 258 // packet. Currently we do not preserve the flags in the 259 // trace. 260 ProtoMessage::Packet pkt_msg; 261 pkt_msg.set_tick(curTick()); 262 pkt_msg.set_cmd(cmd_idx); 263 pkt_msg.set_flags(req_flags); --- 384 unchanged lines hidden --- |