Lines Matching refs:options
206 def build(options):
216 "root=%s" % options.root,
218 "init=%s" % options.kernel_init,
224 disks = [default_disk] if len(options.disk) == 0 else options.disk
225 system = createSystem(options.caches,
226 options.kernel,
227 options.bootscript,
228 options.machine_type,
234 if options.big_cpus + options.little_cpus == 0:
237 big_model, little_model = cpu_types[options.cpu_type]
241 if options.big_cpus > 0:
242 system.bigCluster = big_model(system, options.big_cpus,
243 options.big_cpu_clock)
248 if options.little_cpus > 0:
249 system.littleCluster = little_model(system, options.little_cpus,
250 options.little_cpu_clock)
255 if options.big_cpus > 0 and options.little_cpus > 0 and \
261 system.addCaches(options.caches, options.last_cache_level)
262 if not options.caches:
263 if options.big_cpus > 0 and system.bigCluster.requireCaches():
265 if options.little_cpus > 0 and system.littleCluster.requireCaches():
273 if options.dtb is not None:
274 system.dtb_filename = SysPaths.binary(options.dtb)
276 system.generateDtb(m5.options.outdir, 'system.dtb')
299 def instantiate(options, checkpoint_dir=None):
305 options.sim_quantum)
306 root.sim_quantum = _to_ticks(options.sim_quantum)
309 if options.restore_from:
310 if checkpoint_dir and not os.path.isabs(options.restore_from):
311 cpt = os.path.join(checkpoint_dir, options.restore_from)
313 cpt = options.restore_from
321 def run(checkpoint_dir=m5.options.outdir):
342 options = parser.parse_args()
343 root = build(options)
344 root.apply_config(options.param)
345 instantiate(options)