summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/test/fs.py6
-rw-r--r--configs/test/test.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/configs/test/fs.py b/configs/test/fs.py
index cd894ab73..d191f7055 100644
--- a/configs/test/fs.py
+++ b/configs/test/fs.py
@@ -1,14 +1,14 @@
+import optparse, os, sys
+
import m5
from m5.objects import *
-import os,optparse,sys
from SysPaths import *
-parser = optparse.OptionParser(option_list=m5.standardOptions)
+parser = optparse.OptionParser()
parser.add_option("-t", "--timing", action="store_true")
(options, args) = parser.parse_args()
-m5.setStandardOptions(options)
if args:
print "Error: script doesn't take any positional arguments"
diff --git a/configs/test/test.py b/configs/test/test.py
index e7b0971ef..a2c9f8bb0 100644
--- a/configs/test/test.py
+++ b/configs/test/test.py
@@ -4,15 +4,16 @@
# MIPS: "m5 test.py -a Mips -c hello_mips"
import os, optparse, sys
+
import m5
from m5.objects import *
from FullO3Config import *
# parse command-line arguments
-parser = optparse.OptionParser(option_list=m5.standardOptions)
+parser = optparse.OptionParser()
parser.add_option("-c", "--cmd", default="hello",
- help="The binary to run in syscall emulation mode.")
+ help="The binary to run in syscall emulation mode.")
parser.add_option("-o", "--options", default="",
help="The options to pass to the binary, use \" \" around the entire\
string.")
@@ -26,7 +27,6 @@ parser.add_option("-m", "--maxtick", type="int",
help="Set the maximum number of ticks to run for")
(options, args) = parser.parse_args()
-m5.setStandardOptions(options)
if args:
print "Error: script doesn't take any positional arguments"