gem5: ./run -l works for fs_bigLITTLE.py

When you remove something from the README because it became obvious
through automation, that is a good thing.
This commit is contained in:
Ciro Santilli
2018-08-12 21:52:54 +01:00
parent 4085dfd7b3
commit 185c2730cc
3 changed files with 13 additions and 14 deletions

View File

@@ -8492,12 +8492,6 @@ then:
./run -a A -g -X-b ./run -a A -g -X-b
.... ....
Checkpoints can be restored with:
....
./run -a A -g -X-b -- --restore-from=out/aarch64/gem5/0/m5ou5/cpt.*
....
Advantages over `fs.py`: Advantages over `fs.py`:
* more representative of mobile ARM SoCs, which almost always have big little cluster * more representative of mobile ARM SoCs, which almost always have big little cluster

1
common
View File

@@ -142,6 +142,7 @@ common_root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
common_arch=x86_64 common_arch=x86_64
common_gem5=false common_gem5=false
common_gem5_build_type=opt common_gem5_build_type=opt
common_gem5_cpt_pref='^cpt\.'
common_gem5_variant=default common_gem5_variant=default
common_gem5_worktree= common_gem5_worktree=
common_linux_variant=default common_linux_variant=default

20
run
View File

@@ -198,13 +198,6 @@ if "$common_gem5"; then
else else
gem5_arch=ARM gem5_arch=ARM
fi fi
if [ -n "$gem5_restore_last_checkpoint" ]; then
cpt_pref='^cpt\.'
latest_cpt_basename="$(ls -crt "$common_m5out_dir" | grep -E "$cpt_pref" | tail -n "$gem5_restore_last_checkpoint" | head -n 1)"
n="$(ls -1 "$common_m5out_dir" | grep -E "$cpt_pref" | sort -k 2 -n -t . | grep -n "$latest_cpt_basename" | cut -d : -f 1)"
extra_flags="${extra_flags}-r ${n} \\
"
fi
if "$trace_enabled"; then if "$trace_enabled"; then
gem5opts="${gem5opts} --debug-flags='${trace_type}' \\ gem5opts="${gem5opts} --debug-flags='${trace_type}' \\
" "
@@ -218,7 +211,12 @@ ${gem5opts}\
-d '${common_m5out_dir}' \\ -d '${common_m5out_dir}' \\
" "
if "$gem5_fsbiglittle"; then if "$gem5_fsbiglittle"; then
cmd="${gem5_common}\ if [ -n "$gem5_restore_last_checkpoint" ]; then
extra_flags="${extra_flags}\
--restore-from='${common_m5out_dir}/$(ls -crt "$common_m5out_dir" | grep -E "$common_gem5_cpt_pref" | tail -n "$gem5_restore_last_checkpoint" | head -n 1)' \\
"
fi
cmd="${gem5_common}\
"${common_gem5_default_src_dir}/configs/example/arm/fs_bigLITTLE.py" \\ "${common_gem5_default_src_dir}/configs/example/arm/fs_bigLITTLE.py" \\
--big-cpus=2 \\ --big-cpus=2 \\
--cpu-type=atomic \\ --cpu-type=atomic \\
@@ -228,6 +226,12 @@ ${gem5opts}\
--little-cpus=2 \\ --little-cpus=2 \\
" "
else else
if [ -n "$gem5_restore_last_checkpoint" ]; then
latest_cpt_basename="$(ls -crt "$common_m5out_dir" | grep -E "$common_gem5_cpt_pref" | tail -n "$gem5_restore_last_checkpoint" | head -n 1)"
n="$(ls -1 "$common_m5out_dir" | grep -E "$common_gem5_cpt_pref" | sort -k 2 -n -t . | grep -n "$latest_cpt_basename" | cut -d : -f 1)"
extra_flags="${extra_flags}-r ${n} \\
"
fi
gem5_common="\ gem5_common="\
${gem5_common}\ ${gem5_common}\
'${common_gem5_src_dir}/configs/example/fs.py' \\ '${common_gem5_src_dir}/configs/example/fs.py' \\