Files
linux-kernel-module-cheat/gem5-shell
Ciro Santilli 六四事件 法轮功 a5ec63dc28 CliFunction
2019-01-22 00:00:00 +00:00

18 lines
374 B
Python
Executable File

#!/usr/bin/env python3
import sys
import common
from shell_helpers import LF
parser = self.get_argparse(
default_args={'gem5':True},
argparse_args={'description':'Connect a terminal to a running gem5 instance'}
)
args = self.setup(parser)
sys.exit(self.sh.run_cmd([
kwargs['gem5_m5term'], LF,
'localhost', LF,
str(kwargs['gem5_telnet_port']), LF,
]))