mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gem5: support variants
This commit is contained in:
@@ -19,7 +19,7 @@ set_common_vars "$arch" true
|
||||
cmd="./run -a $arch -g"
|
||||
cache_small='--caches --l2cache --l1d_size=1024 --l1i_size=1024 --l2_size=1024 --l3_size=1024 '
|
||||
cache_large='--caches --l2cache --l1d_size=1024kB --l1i_size=1024kB --l2_size=1024kB --l3_size=1024kB'
|
||||
results_file="${gem5_run_out_dir}/bench-cache.txt"
|
||||
results_file="${common_gem5_out_dir}/bench-cache.txt"
|
||||
|
||||
bench() (
|
||||
common_bench_cmd "$1" "$results_file"
|
||||
@@ -66,7 +66,7 @@ bench-all() (
|
||||
|
||||
if "$generate_checkpoints"; then
|
||||
# Create the checkpoints after the kernel boot.
|
||||
rm -rf "${m5out_dir}"/cpt.*;
|
||||
rm -rf "${common_m5out_dir}"/cpt.*;
|
||||
printf 'm5 exit' > "${readfile_file}"
|
||||
cpt_cmd="-E 'm5 checkpoint;m5 readfile > a.sh;sh a.sh'"
|
||||
# 1
|
||||
|
||||
Reference in New Issue
Block a user