diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-09-06 16:21:33 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-09-06 16:21:33 -0500 |
commit | e9ae8b7d29e83fa2cad55006d2c6dc58115965cc (patch) | |
tree | c418f84ec5ed77be77ca84de9517126b5cfa4ad6 /configs/topologies/BaseTopology.py | |
parent | 24dc914d8758464ed6d757cf2830456562686be0 (diff) | |
download | gem5-e9ae8b7d29e83fa2cad55006d2c6dc58115965cc.tar.xz |
ruby: network: correct naming of routers
The routers are created before the network class. This results in the routers
becoming children of the first link they are connected to and they get generic
names like int_node and node_b. This patch creates the network object first
and passes it to the topology creation function. Now the routers are children
of the network object and names are much more sensible.
Diffstat (limited to 'configs/topologies/BaseTopology.py')
-rw-r--r-- | configs/topologies/BaseTopology.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/topologies/BaseTopology.py b/configs/topologies/BaseTopology.py index 2390bb5be..bd8ae255e 100644 --- a/configs/topologies/BaseTopology.py +++ b/configs/topologies/BaseTopology.py @@ -38,7 +38,7 @@ class BaseTopology(object): all of the controllers created in the above file. """ - def makeTopology(self, options, IntLink, ExtLink, Router): + def makeTopology(self, options, network, IntLink, ExtLink, Router): """ Called from configs/ruby/Ruby.py The return value is ( list(Router), list(IntLink), list(ExtLink)) The API of this function cannot change when subclassing!! |