diff options
Diffstat (limited to 'configs/learning_gem5/part2/simple_memobj.py')
-rw-r--r-- | configs/learning_gem5/part2/simple_memobj.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/learning_gem5/part2/simple_memobj.py b/configs/learning_gem5/part2/simple_memobj.py index 24c6a24d6..b1432bd00 100644 --- a/configs/learning_gem5/part2/simple_memobj.py +++ b/configs/learning_gem5/part2/simple_memobj.py @@ -86,8 +86,12 @@ system.system_port = system.membus.slave # Create a process for a simple "Hello World" application process = Process() # Set the command +# grab the specific path to the binary +thispath = os.path.dirname(os.path.realpath(__file__)) +binpath = os.path.join(thispath, '../../../', + 'tests/test-progs/hello/bin/x86/linux/hello') # cmd is a list which begins with the executable (like argv) -process.cmd = ['tests/test-progs/hello/bin/x86/linux/hello'] +process.cmd = [binpath] # Set the cpu to use the process as its workload and create thread contexts system.cpu.workload = process system.cpu.createThreads() |