memcheck.py (11458:91834ba4b16d) | memcheck.py (11475:d372458be20f) |
---|---|
1# Copyright (c) 2016 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 33 unchanged lines hidden (view full) --- 42# A wrapper around configs/example/memcheck.py 43 44# For some reason, this is implicitly needed by run.py 45root = None 46 47def run_test(root): 48 # Called from tests/run.py 49 | 1# Copyright (c) 2016 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 33 unchanged lines hidden (view full) --- 42# A wrapper around configs/example/memcheck.py 43 44# For some reason, this is implicitly needed by run.py 45root = None 46 47def run_test(root): 48 # Called from tests/run.py 49 |
50 # Set the working directory in case we are executing from 51 # outside gem5's source tree 52 import os 53 os.chdir(os.path.join(os.path.dirname(__file__), "../")) 54 |
|
50 # The path to this script is the only parameter. Delete it so 51 # we can execute the script that we want to execute. 52 import sys 53 del sys.argv[1:] 54 55 # Add a specific max tick 56 sys.argv.append('-m %d' % maxtick) 57 58 # Execute the script we are wrapping | 55 # The path to this script is the only parameter. Delete it so 56 # we can execute the script that we want to execute. 57 import sys 58 del sys.argv[1:] 59 60 # Add a specific max tick 61 sys.argv.append('-m %d' % maxtick) 62 63 # Execute the script we are wrapping |
59 execfile('configs/example/memcheck.py', globals()) | 64 execfile(srcpath('configs/example/memcheck.py'), globals()) |