ruby: changes how Topologies are created
Review Request #1285 - Created July 2, 2012 and submitted
Information | |
---|---|
Brad Beckmann | |
gem5 | |
default | |
Reviewers | |
Default | |
Changeset 9073:da6c24cdff99 --------------------------- ruby: changes how Topologies are created Instead of just passing a list of controllers to the makeTopology function in src/mem/ruby/network/topologies/<Topo>.py we pass in a function pointer which knows how to make the topology, possibly with some extra state set in the configs/ruby/<protocol>.py file. Thus, we can move all of the files from network/topologies to configs/topologies. A new class BaseTopology is added which all topologies in configs/topologies must inheirit from and follow its API.
In the long run I hope we can clean this up even further, but I think this is a step in the right direction.