gem5.sh: simplify, and do m5 resetstats and m5 exit

This covers the most common use case of running a benchmark after restore.
This commit is contained in:
Ciro Santilli
2018-08-25 06:13:09 +01:00
parent 865d065d3d
commit eb4f4ba1d7
3 changed files with 45 additions and 45 deletions

View File

@@ -1,7 +1,6 @@
#!/bin/sh
# This covers the most common setup to run a benchmark in gem5 and exit.
m5 checkpoint
script=/tmp/readfile
m5 readfile > "$script"
if [ -s "$script" ]; then
sh "$script"
fi
m5 resetstats
m5 readfile | sh
m5 exit