se.py (13958:1945df12e5b0) | se.py (13980:62a28c423e91) |
---|---|
1# Copyright (c) 2012-2013 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 --- 50 unchanged lines hidden (view full) --- 59from ruby import Ruby 60 61from common import Options 62from common import Simulation 63from common import CacheConfig 64from common import CpuConfig 65from common import BPConfig 66from common import MemConfig | 1# Copyright (c) 2012-2013 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 --- 50 unchanged lines hidden (view full) --- 59from ruby import Ruby 60 61from common import Options 62from common import Simulation 63from common import CacheConfig 64from common import CpuConfig 65from common import BPConfig 66from common import MemConfig |
67from common.FileSystemConfig import redirect_paths, config_filesystem | 67from common.FileSystemConfig import config_filesystem |
68from common.Caches import * 69from common.cpu2000 import * 70 71def get_processes(options): 72 """Interprets provided options and returns a list of processes""" 73 74 multiprocesses = [] 75 inputs = [] --- 165 unchanged lines hidden (view full) --- 241 system.cpu[i].branchPred = bpClass() 242 243 if options.indirect_bp_type: 244 indirectBPClass = BPConfig.get_indirect(options.indirect_bp_type) 245 system.cpu[i].branchPred.indirectBranchPred = indirectBPClass() 246 247 system.cpu[i].createThreads() 248 | 68from common.Caches import * 69from common.cpu2000 import * 70 71def get_processes(options): 72 """Interprets provided options and returns a list of processes""" 73 74 multiprocesses = [] 75 inputs = [] --- 165 unchanged lines hidden (view full) --- 241 system.cpu[i].branchPred = bpClass() 242 243 if options.indirect_bp_type: 244 indirectBPClass = BPConfig.get_indirect(options.indirect_bp_type) 245 system.cpu[i].branchPred.indirectBranchPred = indirectBPClass() 246 247 system.cpu[i].createThreads() 248 |
249system.redirect_paths = redirect_paths(os.path.expanduser(options.chroot)) 250config_filesystem(options) 251 | |
252if options.ruby: 253 Ruby.create_system(options, False, system) 254 assert(options.num_cpus == len(system.ruby._cpu_ports)) 255 256 system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock, 257 voltage_domain = system.voltage_domain) 258 for i in range(np): 259 ruby_port = system.ruby._cpu_ports[i] --- 13 unchanged lines hidden (view full) --- 273 system.cpu[i].itb.walker.port = ruby_port.slave 274 system.cpu[i].dtb.walker.port = ruby_port.slave 275else: 276 MemClass = Simulation.setMemClass(options) 277 system.membus = SystemXBar() 278 system.system_port = system.membus.slave 279 CacheConfig.config_cache(options, system) 280 MemConfig.config_mem(options, system) | 249if options.ruby: 250 Ruby.create_system(options, False, system) 251 assert(options.num_cpus == len(system.ruby._cpu_ports)) 252 253 system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock, 254 voltage_domain = system.voltage_domain) 255 for i in range(np): 256 ruby_port = system.ruby._cpu_ports[i] --- 13 unchanged lines hidden (view full) --- 270 system.cpu[i].itb.walker.port = ruby_port.slave 271 system.cpu[i].dtb.walker.port = ruby_port.slave 272else: 273 MemClass = Simulation.setMemClass(options) 274 system.membus = SystemXBar() 275 system.system_port = system.membus.slave 276 CacheConfig.config_cache(options, system) 277 MemConfig.config_mem(options, system) |
278 config_filesystem(system, options) |
|
281 282root = Root(full_system = False, system = system) 283Simulation.run(options, root, system, FutureClass) | 279 280root = Root(full_system = False, system = system) 281Simulation.run(options, root, system, FutureClass) |