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 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 |
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) |
279 280root = Root(full_system = False, system = system) 281Simulation.run(options, root, system, FutureClass) |