diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-06-05 13:39:53 -0400 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-06-05 13:39:53 -0400 |
commit | cfe22d61d974a8ef8834b0262691a00f10926a86 (patch) | |
tree | 27908ee447259f15c42c49944a3d22e44896d36d | |
parent | 9be1e13f990d51ba59e394a1fbb35bd95429e077 (diff) | |
parent | 6fa114640604e31433be5821be80effb3ea927ea (diff) | |
download | gem5-cfe22d61d974a8ef8834b0262691a00f10926a86.tar.xz |
Merge ktlim@zizzer:/bk/newmem
into zizzer.eecs.umich.edu:/.automount/zamp/z/ktlim2/clean/newmem-merge
--HG--
extra : convert_revision : ae48a0cafa75459c0dbd71eab93934bbdc8614ae
-rw-r--r-- | src/python/m5/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/m5/__init__.py b/src/python/m5/__init__.py index c44a9ad1f..5bd9bf22c 100644 --- a/src/python/m5/__init__.py +++ b/src/python/m5/__init__.py @@ -132,10 +132,11 @@ while args_left: # of the format --<python var>=<string value> try: (var, val) = arg.split('=', 1) + var = var[2:] except ValueError: panic("Could not parse configuration argument '%s'\n" "Expecting --<variable>=<value>\n" % arg); - eval("%s = %s" % (var, repr(val))) + exec "%s = %s" % (var, repr(val)) elif arg.startswith('-'): # if the arg starts with '-', it should be a simulator option # with a format similar to getopt. |