Lines Matching refs:options

49 __all__ = [ 'options', 'arguments', 'main' ]
51 usage="%prog [gem5 options] script.py [script options]"
70 from .options import OptionParser
72 options = OptionParser(usage=usage, version=version,
74 option = options.add_option
75 group = options.set_group
79 # Help options
116 # Statistics options
136 # Debugging options
156 # Help options
161 # load the options.py config file to allow people to set their own
162 # default options
163 options_file = config.get('options.py')
165 scope = { 'options' : options }
168 arguments = options.parse_args()
169 return options,arguments
232 options, arguments = parse_options()
234 options, arguments = args
238 m5.options = options
244 if not os.path.isdir(options.outdir):
245 os.makedirs(options.outdir)
247 # These filenames are used only if the redirect_std* options are set
248 stdout_file = os.path.join(options.outdir, options.stdout_file)
249 stderr_file = os.path.join(options.outdir, options.stderr_file)
252 if options.redirect_stdout and not options.redirect_stderr:
255 if options.redirect_stdout:
257 if options.redirect_stderr:
261 if options.redirect_stdout:
264 if not options.redirect_stderr:
267 if options.redirect_stderr:
273 if options.build_info:
278 print('build options:')
286 if options.copyright:
291 if options.readme:
298 if options.debug_help:
303 if options.list_sim_objects:
328 if options.verbose > 0 and options.quiet > 0:
329 options.usage(2)
331 verbose = options.verbose - options.quiet
354 options.usage(2)
357 core.setOutputDir(options.outdir)
360 sys.path[0:0] = options.path
362 # set stats options
363 stats.addStatVisitor(options.stats_file)
367 if options.listener_mode == "off":
369 elif options.listener_mode == "auto":
373 elif options.listener_mode == "on":
376 panic("Unhandled listener mode: %s" % options.listener_mode)
378 if options.listener_loopback_only:
381 # set debugging options
382 debug.setRemoteGDBPort(options.remote_gdb_port)
383 for when in options.debug_break:
386 if options.debug_flags:
391 for flag in options.debug_flags:
406 if options.debug_start:
409 event.mainq.schedule(e, options.debug_start)
413 if options.debug_end:
416 event.mainq.schedule(e, options.debug_end)
418 trace.output(options.debug_file)
420 for ignore in options.debug_ignore:
435 if options.pdb:
456 if options.interactive:
462 options, arguments = parse_options()
465 pprint(options, indent=4)