summaryrefslogtreecommitdiff
path: root/configs/example/ruby_direct_test.py
diff options
context:
space:
mode:
authorTushar Krishna <tushar@ece.gatech.edu>2016-10-06 14:35:17 -0400
committerTushar Krishna <tushar@ece.gatech.edu>2016-10-06 14:35:17 -0400
commitb9e23a6d741cdcdf0ffb7364c6aae36a487335ef (patch)
treed81337a49324e0aa1829308aa76a93e8b3144997 /configs/example/ruby_direct_test.py
parent0f68b50ff11a957a9c8d31b592c75e659f8a1023 (diff)
downloadgem5-b9e23a6d741cdcdf0ffb7364c6aae36a487335ef.tar.xz
config: add a separate config file for the network.
This patch adds a new file configs/network/Network.py to setup the network, instead of doing that within Ruby.py.
Diffstat (limited to 'configs/example/ruby_direct_test.py')
-rw-r--r--configs/example/ruby_direct_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/configs/example/ruby_direct_test.py b/configs/example/ruby_direct_test.py
index 857909ba9..cc74aec5d 100644
--- a/configs/example/ruby_direct_test.py
+++ b/configs/example/ruby_direct_test.py
@@ -35,10 +35,12 @@ from m5.util import addToPath
import os, optparse, sys
addToPath('../common')
addToPath('../ruby')
+addToPath('../network')
addToPath('../topologies')
import Options
import Ruby
+import Network
# Get paths we might need. It's expected this file is in m5/configs/example.
config_path = os.path.dirname(os.path.abspath(__file__))
@@ -63,6 +65,7 @@ parser.add_option("--percent-writes", type="int", default=100,
# Add the ruby specific and protocol specific options
#
Ruby.define_options(parser)
+Network.define_options(parser)
(options, args) = parser.parse_args()
if args: