start moving algorithm in

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-11-18 00:00:00 +00:00
parent 99d6bc6bc1
commit 9dfcb316bf
18 changed files with 743 additions and 548 deletions

9
run
View File

@@ -234,6 +234,14 @@ Setup a kernel init parameter that makes the emulator quit immediately after boo
default=True,
help='''Show emulator stdout and stderr on the host terminal.'''
)
self.add_argument(
'--stdin-file',
help='''\
Set the given file as the stdin source of the emulator. QEMU and gem5 then
forward this to the guest in user mode simulation.
https://cirosantilli.com/linux-kernel-module-cheat#syscall-emulation-mode-program-stdin
'''
)
self.add_argument(
'--terminal',
default=False,
@@ -805,6 +813,7 @@ Extra options to append at the end of the emulator command line.
out_file=out_file,
raise_on_failure=False,
show_stdout=show_stdout,
stdin_path=self.env['stdin_file'],
)
if self.env['debug_vm_rr']:
exit_status = self.sh.run_cmd(