gem5 readfile use file, not stdin, or else sh does not work to start interaction

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-10-29 00:00:00 +00:00
parent 44227c7b6a
commit c06923297f
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
#!/bin/sh
# https://cirosantilli.com/linux-kernel-module-cheat#gem5-restore-new-script
m5 checkpoint
tmp="$(mktemp)"
m5 readfile > "$tmp"
m5 resetstats
m5 readfile | sh
sh "$tmp"
m5 exit