gem5: m5 execfile

This commit is contained in:
Ciro Santilli
2018-04-01 22:47:34 +01:00
parent bf7f801706
commit 1f5baf5371
2 changed files with 19 additions and 2 deletions

View File

@@ -3394,7 +3394,7 @@ https://stackoverflow.com/questions/49516399/how-to-use-m5-readfile-and-m5-execf
Host:
....
date >readfile.gitignore
date > readfile.gitignore
....
Guest:
@@ -3403,6 +3403,23 @@ Guest:
m5 readfile
....
==== m5 execfile
Host:
....
printf '#!/bin/sh
echo asdf' > readfile.gitignore
....
Guest:
....
touch /tmp/execfile
chmoe +x /tmp/execfile
m5 execfile
....
=== gem5 limitations
* networking not working. We currently just disable it from `inittab` by default to prevent waiting at startup