SimpleNetwork.cc (7547:a5ddcb2abfa1) | SimpleNetwork.cc (7832:de7601e6e19d) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 12 unchanged lines hidden (view full) --- 21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 12 unchanged lines hidden (view full) --- 21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 |
29#include <cassert> |
|
29#include <numeric> 30 31#include "base/stl_helpers.hh" 32#include "mem/protocol/MachineType.hh" 33#include "mem/protocol/Protocol.hh" 34#include "mem/protocol/TopologyType.hh" 35#include "mem/ruby/buffers/MessageBuffer.hh" 36#include "mem/ruby/common/NetDest.hh" --- 156 unchanged lines hidden (view full) --- 193 m_switch_ptr_vector[dest]->addInPort(queues); 194 m_switch_ptr_vector[src]->addOutPort(queues, routing_table_entry, 195 link_latency, bw_multiplier); 196} 197 198void 199SimpleNetwork::checkNetworkAllocation(NodeID id, bool ordered, int network_num) 200{ | 30#include <numeric> 31 32#include "base/stl_helpers.hh" 33#include "mem/protocol/MachineType.hh" 34#include "mem/protocol/Protocol.hh" 35#include "mem/protocol/TopologyType.hh" 36#include "mem/ruby/buffers/MessageBuffer.hh" 37#include "mem/ruby/common/NetDest.hh" --- 156 unchanged lines hidden (view full) --- 194 m_switch_ptr_vector[dest]->addInPort(queues); 195 m_switch_ptr_vector[src]->addOutPort(queues, routing_table_entry, 196 link_latency, bw_multiplier); 197} 198 199void 200SimpleNetwork::checkNetworkAllocation(NodeID id, bool ordered, int network_num) 201{ |
201 ASSERT(id < m_nodes); 202 ASSERT(network_num < m_virtual_networks); | 202 assert(id < m_nodes); 203 assert(network_num < m_virtual_networks); |
203 204 if (ordered) { 205 m_ordered[network_num] = true; 206 } 207 m_in_use[network_num] = true; 208} 209 210MessageBuffer* --- 143 unchanged lines hidden --- | 204 205 if (ordered) { 206 m_ordered[network_num] = true; 207 } 208 m_in_use[network_num] = true; 209} 210 211MessageBuffer* --- 143 unchanged lines hidden --- |