mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 11:41:35 +01:00
17 lines
379 B
Python
Executable File
17 lines
379 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
|
|
import common
|
|
|
|
parser = common.get_argparse(
|
|
default_args={'gem5':True},
|
|
argparse_args={'description':'Connect a terminal to a running gem5 instance'}
|
|
)
|
|
args = common.setup(parser)
|
|
sys.exit(self.sh.run_cmd([
|
|
common.gem5_m5term, common.Newline,
|
|
'localhost', common.Newline,
|
|
str(common.gem5_telnet_port), common.Newline,
|
|
]))
|