run: make gem5-shell work even when not on cwd

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-07-14 00:00:01 +00:00
parent 85be87d71c
commit f9fc7aa372
3 changed files with 2 additions and 64 deletions

2
run
View File

@@ -723,7 +723,7 @@ Extra options to append at the end of the emulator command line.
tmux_args = '--run-id {}'.format(self.env['run_id'])
if self.env['tmux_program'] == 'shell':
if self.env['emulator'] == 'gem5':
tmux_cmd = './gem5-shell'
tmux_cmd = os.path.join(self.env['root_dir'], 'gem5-shell')
else:
raise Exception('--tmux-program is only supported in gem5 currently.')
elif self.env['tmux_program'] == 'gdb':