1# Copyright (c) 2006-2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 56 unchanged lines hidden (view full) --- 65 default=joinpath(m5_root, "tests/test-progs/hello/bin/%s/linux/hello" % \ 66 buildEnv['TARGET_ISA']), 67 help="The binary to run in syscall emulation mode.") 68parser.add_option("-o", "--options", default="", 69 help='The options to pass to the binary, use " " around the entire string') 70parser.add_option("-i", "--input", default="", help="Read stdin from a file.") 71parser.add_option("--output", default="", help="Redirect stdout to a file.") 72parser.add_option("--errout", default="", help="Redirect stderr to a file.") |
73 |
74if 'PROTOCOL' in buildEnv: 75 parser.add_option("--ruby", action="store_true") 76 |
77execfile(os.path.join(config_root, "common", "Options.py")) 78 |
79if '--ruby' in sys.argv: |
80 Ruby.define_options(parser) |
81 |
82(options, args) = parser.parse_args() 83 |
84if args: 85 print "Error: script doesn't take any positional arguments" 86 sys.exit(1) 87 88multiprocesses = [] 89apps = [] 90 91if options.bench: --- 108 unchanged lines hidden --- |