mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
CliFunction
This commit is contained in:
13
gem5-shell
13
gem5-shell
@@ -3,14 +3,15 @@
|
||||
import sys
|
||||
|
||||
import common
|
||||
from shell_helpers import LF
|
||||
|
||||
parser = common.get_argparse(
|
||||
parser = self.get_argparse(
|
||||
default_args={'gem5':True},
|
||||
argparse_args={'description':'Connect a terminal to a running gem5 instance'}
|
||||
)
|
||||
args = common.setup(parser)
|
||||
sys.exit(common.run_cmd([
|
||||
common.gem5_m5term, common.Newline,
|
||||
'localhost', common.Newline,
|
||||
str(common.gem5_telnet_port), common.Newline,
|
||||
args = self.setup(parser)
|
||||
sys.exit(self.sh.run_cmd([
|
||||
kwargs['gem5_m5term'], LF,
|
||||
'localhost', LF,
|
||||
str(kwargs['gem5_telnet_port']), LF,
|
||||
]))
|
||||
|
||||
Reference in New Issue
Block a user