mem_checker_monitor.cc (13449:2f7efa89c58b) | mem_checker_monitor.cc (13784:1941dc118243) |
---|---|
1/* 2 * Copyright (c) 2012-2014 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 --- 59 unchanged lines hidden (view full) --- 68void 69MemCheckerMonitor::init() 70{ 71 // make sure both sides of the monitor are connected 72 if (!slavePort.isConnected() || !masterPort.isConnected()) 73 fatal("Communication monitor is not connected on both sides.\n"); 74} 75 | 1/* 2 * Copyright (c) 2012-2014 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 --- 59 unchanged lines hidden (view full) --- 68void 69MemCheckerMonitor::init() 70{ 71 // make sure both sides of the monitor are connected 72 if (!slavePort.isConnected() || !masterPort.isConnected()) 73 fatal("Communication monitor is not connected on both sides.\n"); 74} 75 |
76BaseMasterPort& 77MemCheckerMonitor::getMasterPort(const std::string& if_name, PortID idx) | 76Port & 77MemCheckerMonitor::getPort(const std::string &if_name, PortID idx) |
78{ 79 if (if_name == "master" || if_name == "mem_side") { 80 return masterPort; | 78{ 79 if (if_name == "master" || if_name == "mem_side") { 80 return masterPort; |
81 } else { 82 return MemObject::getMasterPort(if_name, idx); 83 } 84} 85 86BaseSlavePort& 87MemCheckerMonitor::getSlavePort(const std::string& if_name, PortID idx) 88{ 89 if (if_name == "slave" || if_name == "cpu_side") { | 81 } else if (if_name == "slave" || if_name == "cpu_side") { |
90 return slavePort; 91 } else { | 82 return slavePort; 83 } else { |
92 return MemObject::getSlavePort(if_name, idx); | 84 return MemObject::getPort(if_name, idx); |
93 } 94} 95 96void 97MemCheckerMonitor::recvFunctional(PacketPtr pkt) 98{ 99 Addr addr = pkt->getAddr(); 100 unsigned size = pkt->getSize(); --- 272 unchanged lines hidden --- | 85 } 86} 87 88void 89MemCheckerMonitor::recvFunctional(PacketPtr pkt) 90{ 91 Addr addr = pkt->getAddr(); 92 unsigned size = pkt->getSize(); --- 272 unchanged lines hidden --- |