28a29
> import m5
41c42
< """ Called from src/mem/ruby/network/topologies/TopologyCreatory.py
---
> """ Called from configs/ruby/Ruby.py
48,50c49
< print "BaseTopology should have been overridden in a sub class!!"
< import sys
< sys.exit(1)
---
> m5.util.fatal("BaseTopology should have been overridden!!")
51a51,66
> class SimpleTopology(BaseTopology):
> """ Provides methods needed for the topologies included in Ruby before
> topology changes.
> These topologies are "simple" in the sense that they only use a flat
> list of controllers to construct the topology.
> """
> description = "SimpleTopology"
>
> def __init__(self, controllers):
> self.nodes = controllers
>
> def addController(self, controller):
> self.nodes.append(controller)
>
> def __len__(self):
> return len(self.nodes)