Lines Matching refs:options

72     if options.command_line and options.command_line_file:
76 if options.command_line:
77 return options.command_line
78 if options.command_line_file:
79 return open(options.command_line_file).read().strip()
85 test_sys = makeLinuxAlphaSystem(test_mem_mode, bm[0], options.ruby,
92 test_sys = makeLinuxX86System(test_mem_mode, np, bm[0], options.ruby,
95 test_sys = makeArmSystem(test_mem_mode, options.machine_type, np,
96 bm[0], options.dtb_filename,
97 bare_metal=options.bare_metal,
100 options.external_memory_system,
101 ruby=options.ruby,
102 security=options.enable_security_extensions)
103 if options.enable_context_switch_stats_dump:
109 test_sys.cache_line_size = options.cacheline_size
112 test_sys.voltage_domain = VoltageDomain(voltage = options.sys_voltage)
115 test_sys.clk_domain = SrcClockDomain(clock = options.sys_clock,
122 test_sys.cpu_clk_domain = SrcClockDomain(clock = options.cpu_clock,
126 if options.kernel is not None:
127 test_sys.kernel = binary(options.kernel)
132 if options.script is not None:
133 test_sys.readfile = options.script
135 if options.lpae:
138 if options.virtualisation:
141 test_sys.init_param = options.init_param
150 if options.ruby:
152 Ruby.create_system(options, True, test_sys, test_sys.iobus,
156 test_sys.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock,
184 if options.caches or options.l2cache:
189 elif not options.external_memory_system:
195 if options.simpoint_profile:
202 if options.simpoint_profile:
203 test_sys.cpu[i].addSimPointProbe(options.simpoint_interval)
204 if options.checker:
206 if options.bp_type:
207 bpClass = BPConfig.get(options.bp_type)
209 if options.indirect_bp_type:
211 BPConfig.get_indirect(options.indirect_bp_type)
223 if options.elastic_trace_en and options.checkpoint_restore == None and \
224 not options.fast_forward:
225 CpuConfig.config_etrace(TestCPUClass, test_sys.cpu, options)
227 CacheConfig.config_cache(options, test_sys)
229 MemConfig.config_mem(options, test_sys)
252 drive_sys = makeArmSystem(drive_mem_mode, options.machine_type, np,
253 bm[1], options.dtb_filename, cmdline=cmdline)
256 drive_sys.voltage_domain = VoltageDomain(voltage = options.sys_voltage)
259 drive_sys.clk_domain = SrcClockDomain(clock = options.sys_clock,
266 drive_sys.cpu_clk_domain = SrcClockDomain(clock = options.cpu_clock,
275 if options.kernel is not None:
276 drive_sys.kernel = binary(options.kernel)
296 drive_sys.init_param = options.init_param
300 # Add options
305 # Add the ruby specific and protocol specific options
309 (options, args) = parser.parse_args()
316 (TestCPUClass, test_mem_mode, FutureClass) = Simulation.setCPUClass(options)
318 # Match the memories with the CPUs, based on the options for the test system
319 TestMemClass = Simulation.setMemClass(options)
321 if options.benchmark:
323 bm = Benchmarks[options.benchmark]
325 print("Error benchmark %s has not been defined." % options.benchmark)
329 if options.dual:
330 bm = [SysConfig(disk=options.disk_image, rootdev=options.root_device,
331 mem=options.mem_size, os_type=options.os_type),
332 SysConfig(disk=options.disk_image, rootdev=options.root_device,
333 mem=options.mem_size, os_type=options.os_type)]
335 bm = [SysConfig(disk=options.disk_image, rootdev=options.root_device,
336 mem=options.mem_size, os_type=options.os_type)]
338 np = options.num_cpus
343 root = makeDualRoot(True, test_sys, drive_sys, options.etherdump)
344 elif len(bm) == 1 and options.dist:
347 options.dist_rank,
348 options.dist_size,
349 options.dist_server_name,
350 options.dist_server_port,
351 options.dist_sync_repeat,
352 options.dist_sync_start,
353 options.ethernet_linkspeed,
354 options.ethernet_linkdelay,
355 options.etherdump);
362 if options.timesync:
365 if options.frame_capture:
368 if buildEnv['TARGET_ISA'] == "arm" and not options.bare_metal \
369 and not options.dtb_filename:
370 if options.machine_type not in ["VExpress_GEM5", "VExpress_GEM5_V1"]:
379 sys.generateDtb(m5.options.outdir, '%s.dtb' % sysname)
381 Simulation.setWorkCountOptions(test_sys, options)
382 Simulation.run(options, root, test_sys, FutureClass)