diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-06-11 21:49:46 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-06-11 21:49:46 -0400 |
commit | e0140202bd5f0d16d25e526283047e5a2ef5dc0c (patch) | |
tree | 8226be8501f17c7f393f13bd08a7f2b3228fbb58 /configs | |
parent | d3a57835234ab2ca3830bad380e434ec2c8d2418 (diff) | |
download | gem5-e0140202bd5f0d16d25e526283047e5a2ef5dc0c.tar.xz |
Move LiveProcess::create() from arch-specific files
bcak to main LiveProcess, then automatically select
ISA based on object file type. Now simulation scripts
no longer need to care about the ISA, as they can just
call LiveProcess().
configs/test/test.py:
Script no longer cares about ISA.
src/arch/alpha/process.cc:
src/arch/alpha/process.hh:
src/arch/mips/process.cc:
src/arch/mips/process.hh:
src/arch/sparc/process.cc:
src/arch/sparc/process.hh:
src/sim/process.cc:
src/sim/process.hh:
Move create() from arch-specific files back to
main LiveProcess, then automatically select ISA
based on object file type.
--HG--
extra : convert_revision : ef33ffdc79623b77000f5d68edd2026760b76ab6
Diffstat (limited to 'configs')
-rw-r--r-- | configs/test/test.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/configs/test/test.py b/configs/test/test.py index 8bdea16ac..8c5b06e6a 100644 --- a/configs/test/test.py +++ b/configs/test/test.py @@ -11,7 +11,6 @@ from m5.objects import * parser = optparse.OptionParser(option_list=m5.standardOptions) parser.add_option("-c", "--cmd", default="hello") -parser.add_option("-a", "--arch", choices=["Alpha", "Mips"], default="Alpha") parser.add_option("-t", "--timing", action="store_true") (options, args) = parser.parse_args() @@ -23,10 +22,7 @@ if args: # build configuration this_dir = os.path.dirname(__file__) -print "arch =", options.arch -process_class = eval(options.arch + "LiveProcess") - -process = process_class() +process = LiveProcess() process.executable = os.path.join(this_dir, options.cmd) process.cmd = options.cmd |