se.py (12146:bb4ca633cf1f) | se.py (12395:322bb93e5f06) |
---|---|
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 --- 35 unchanged lines hidden (view full) --- 44 45import optparse 46import sys 47import os 48 49import m5 50from m5.defines import buildEnv 51from m5.objects import * | 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 --- 35 unchanged lines hidden (view full) --- 44 45import optparse 46import sys 47import os 48 49import m5 50from m5.defines import buildEnv 51from m5.objects import * |
52from m5.util import addToPath, fatal | 52from m5.util import addToPath, fatal, warn |
53 54addToPath('../') 55 56from ruby import Ruby 57 58from common import Options 59from common import Simulation 60from common import CacheConfig --- 184 unchanged lines hidden (view full) --- 245 system.cpu[i].addSimPointProbe(options.simpoint_interval) 246 247 if options.checker: 248 system.cpu[i].addCheckerCpu() 249 250 system.cpu[i].createThreads() 251 252if options.ruby: | 53 54addToPath('../') 55 56from ruby import Ruby 57 58from common import Options 59from common import Simulation 60from common import CacheConfig --- 184 unchanged lines hidden (view full) --- 245 system.cpu[i].addSimPointProbe(options.simpoint_interval) 246 247 if options.checker: 248 system.cpu[i].addCheckerCpu() 249 250 system.cpu[i].createThreads() 251 252if options.ruby: |
253 if options.cpu_type == "AtomicSimpleCPU": 254 print >> sys.stderr, "Ruby does not work with atomic cpu!!" 255 sys.exit(1) 256 | |
257 Ruby.create_system(options, False, system) 258 assert(options.num_cpus == len(system.ruby._cpu_ports)) 259 260 system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock, 261 voltage_domain = system.voltage_domain) 262 for i in xrange(np): 263 ruby_port = system.ruby._cpu_ports[i] 264 --- 23 unchanged lines hidden --- | 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 xrange(np): 259 ruby_port = system.ruby._cpu_ports[i] 260 --- 23 unchanged lines hidden --- |