diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-06-28 21:36:37 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-06-28 21:36:37 -0500 |
commit | b3980cdb9a511227d5b2eb2d4ba75fde34cb209b (patch) | |
tree | 08cf6c59e320d644213f13b50449a2701d962051 /src/mem/ruby/network/simple/SimpleNetwork.cc | |
parent | 62a93f0bf03385c5ed298b740162b06022f2e2ee (diff) | |
download | gem5-b3980cdb9a511227d5b2eb2d4ba75fde34cb209b.tar.xz |
ruby: network: remove reconfiguration code
This code seems not to be of any use now. There is no path in the simulator
that allows for reconfiguring the network. A better approach would be to
take a checkpoint and start the simulation from the checkpoint with the new
configuration.
Diffstat (limited to 'src/mem/ruby/network/simple/SimpleNetwork.cc')
-rw-r--r-- | src/mem/ruby/network/simple/SimpleNetwork.cc | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/src/mem/ruby/network/simple/SimpleNetwork.cc b/src/mem/ruby/network/simple/SimpleNetwork.cc index a51add4a5..071e1adae 100644 --- a/src/mem/ruby/network/simple/SimpleNetwork.cc +++ b/src/mem/ruby/network/simple/SimpleNetwork.cc @@ -96,8 +96,7 @@ SimpleNetwork::init() // The topology pointer should have already been initialized in // the parent class network constructor. assert(m_topology_ptr != NULL); - // false because this isn't a reconfiguration - m_topology_ptr->createLinks(this, false); + m_topology_ptr->createLinks(this); } void @@ -130,18 +129,12 @@ SimpleNetwork::~SimpleNetwork() void SimpleNetwork::makeOutLink(SwitchID src, NodeID dest, BasicLink* link, LinkDirection direction, - const NetDest& routing_table_entry, - bool isReconfiguration) + const NetDest& routing_table_entry) { assert(dest < m_nodes); assert(src < m_switch_ptr_vector.size()); assert(m_switch_ptr_vector[src] != NULL); - if (isReconfiguration) { - m_switch_ptr_vector[src]->reconfigureOutPort(routing_table_entry); - return; - } - SimpleExtLink *simple_link = safe_cast<SimpleExtLink*>(link); m_switch_ptr_vector[src]->addOutPort(m_fromNetQueues[dest], @@ -156,15 +149,9 @@ SimpleNetwork::makeOutLink(SwitchID src, NodeID dest, BasicLink* link, void SimpleNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link, LinkDirection direction, - const NetDest& routing_table_entry, - bool isReconfiguration) + const NetDest& routing_table_entry) { assert(src < m_nodes); - if (isReconfiguration) { - // do nothing - return; - } - m_switch_ptr_vector[dest]->addInPort(m_toNetQueues[src]); } @@ -172,14 +159,8 @@ SimpleNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link, void SimpleNetwork::makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link, LinkDirection direction, - const NetDest& routing_table_entry, - bool isReconfiguration) + const NetDest& routing_table_entry) { - if (isReconfiguration) { - m_switch_ptr_vector[src]->reconfigureOutPort(routing_table_entry); - return; - } - // Create a set of new MessageBuffers std::vector<MessageBuffer*> queues; for (int i = 0; i < m_virtual_networks; i++) { |