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

@@ -11528,7 +11528,7 @@ So we can do it like:
....
# Boot, checkpoint and exit.
printf 'echo "setup run";m5 exit' > "$(./getvar gem5_readfile_file)"
./run --emulator gem5 --eval 'm5 checkpoint;m5 readfile | sh'
./run --emulator gem5 --eval 'm5 checkpoint;m5 readfile > /tmp/gem5.sh && sh /tmp/gem5.sh'
# Restore and run the first benchmark.
printf 'echo "first benchmark";m5 exit' > "$(./getvar gem5_readfile_file)"