53,59d52
< # Set the working directory in case we are executing from
< # outside gem5's source tree
< import os
< os.chdir(os.path.join(os.path.dirname(__file__), "../"))
<
< # The path to this script is the only parameter. Delete it so
< # we can execute the script that we want to execute.
61c54,59
< del sys.argv[1:]
---
> argv = [
> sys.argv[0],
> # Add a specific page policy and specify the number of ranks
> '-p%s' % page_policy,
> '-r 2',
> ]
63,66d60
< # Add a specific page policy and specify the number of ranks
< sys.argv.append('-p%s' % page_policy)
< sys.argv.append('-r 2')
<
68c62
< execfile(srcpath('configs/dram/low_power_sweep.py'), globals())
---
> run_config('configs/dram/low_power_sweep.py', argv=argv)