Deleted Added
sdiff udiff text old ( 13774:a1be2a0c55f2 ) new ( 13885:d10ea5e56cb0 )
full compact
1# Copyright (c) 2012, 2017-2018 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 36 unchanged lines hidden (view full) ---

45import m5
46from m5.objects import *
47from m5.defines import buildEnv
48from m5.util import addToPath, fatal
49
50addToPath('../')
51
52from common import MemConfig
53
54from topologies import *
55from network import Network
56
57def define_options(parser):
58 # By default, ruby uses the simple timing cpu
59 parser.set_defaults(cpu_type="TimingSimpleCPU")
60

--- 88 unchanged lines hidden (view full) ---

149 return topology
150
151def create_system(options, full_system, system, piobus = None, dma_ports = [],
152 bootmem=None):
153
154 system.ruby = RubySystem()
155 ruby = system.ruby
156
157 # Create the network object
158 (network, IntLinkClass, ExtLinkClass, RouterClass, InterfaceClass) = \
159 Network.create_network(options, ruby)
160 ruby.network = network
161
162 protocol = buildEnv['PROTOCOL']
163 exec("from . import %s" % protocol)
164 try:

--- 4 unchanged lines hidden (view full) ---

169 except:
170 print("Error: could not create sytem for ruby protocol %s" % protocol)
171 raise
172
173 # Create the network topology
174 topology.makeTopology(options, network, IntLinkClass, ExtLinkClass,
175 RouterClass)
176
177 # Initialize network based on topology
178 Network.init_network(options, network, InterfaceClass)
179
180 # Create a port proxy for connecting the system port. This is
181 # independent of the protocol and kept in the protocol-agnostic
182 # part (i.e. here).
183 sys_port_proxy = RubyPortProxy(ruby_system = ruby)
184 if piobus is not None:

--- 61 unchanged lines hidden ---