diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-22 15:53:22 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-22 15:53:22 -0500 |
commit | 2d501276429ab674c146a86802e62538892fc500 (patch) | |
tree | 11bbe0bd00647b64046cdf2c52a13fbfa07030d0 /src/mem/ruby/network/garnet | |
parent | 2ca42cd62666f4d13eab259290b6cde5fe677862 (diff) | |
download | gem5-2d501276429ab674c146a86802e62538892fc500.tar.xz |
ruby: network: move routers from topology to network
Diffstat (limited to 'src/mem/ruby/network/garnet')
-rw-r--r-- | src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc | 6 | ||||
-rw-r--r-- | src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc b/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc index f6fcc2514..c4965af17 100644 --- a/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc +++ b/src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc @@ -59,9 +59,8 @@ GarnetNetwork_d::GarnetNetwork_d(const Params *p) } // record the routers - for (vector<BasicRouter*>::const_iterator i = - m_topology_ptr->params()->routers.begin(); - i != m_topology_ptr->params()->routers.end(); ++i) { + for (vector<BasicRouter*>::const_iterator i = p->routers.begin(); + i != p->routers.end(); ++i) { Router_d* router = safe_cast<Router_d*>(*i); m_router_ptr_vector.push_back(router); } @@ -115,7 +114,6 @@ GarnetNetwork_d::init() router->printFaultVector(cout); } } - } GarnetNetwork_d::~GarnetNetwork_d() diff --git a/src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc b/src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc index a60d23457..ed75a26d1 100644 --- a/src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc +++ b/src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc @@ -53,9 +53,8 @@ GarnetNetwork::GarnetNetwork(const Params *p) m_number_of_pipe_stages = p->number_of_pipe_stages; // record the routers - for (vector<BasicRouter*>::const_iterator i = - m_topology_ptr->params()->routers.begin(); - i != m_topology_ptr->params()->routers.end(); ++i) { + for (vector<BasicRouter*>::const_iterator i = p->routers.begin(); + i != p->routers.end(); ++i) { Router* router = safe_cast<Router*>(*i); m_router_ptr_vector.push_back(router); } |