diff options
author | Jason Lowe-Power <jason@lowepower.com> | 2019-04-04 18:36:23 -0700 |
---|---|---|
committer | Jason Lowe-Power <jason@lowepower.com> | 2019-04-08 22:51:38 +0000 |
commit | 6bcd13fcc4d0c5eb3c7ced0ce6bc827e193415eb (patch) | |
tree | 5c75fefd7b6a9d4cca55cb275d777e6548f9ef65 /configs/learning_gem5/part2 | |
parent | ca687eaab3f7117c9e2986e81afeaaee12cbcc63 (diff) | |
download | gem5-6bcd13fcc4d0c5eb3c7ced0ce6bc827e193415eb.tar.xz |
configs: Add full path for learning_gem5 binaries
Change-Id: Ie48429d65e322136109a223ed404937989aae494
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17868
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Diffstat (limited to 'configs/learning_gem5/part2')
-rw-r--r-- | configs/learning_gem5/part2/simple_cache.py | 6 | ||||
-rw-r--r-- | configs/learning_gem5/part2/simple_memobj.py | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/configs/learning_gem5/part2/simple_cache.py b/configs/learning_gem5/part2/simple_cache.py index c65024233..5523b7fd4 100644 --- a/configs/learning_gem5/part2/simple_cache.py +++ b/configs/learning_gem5/part2/simple_cache.py @@ -88,8 +88,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() 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() |