summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-04-12 14:49:59 +0800
committerIru Cai <mytbk920423@gmail.com>2019-04-12 14:49:59 +0800
commit5cca29c1e9e9e0ce3c87252d00fe2e02c5bb03bd (patch)
treedfd88dd5e6e44d65c9cf574d8ee3c87cccb637b0
parent101d6e356c630e9e0d48c0b3188807b8e5818c37 (diff)
downloadgem5-5cca29c1e9e9e0ce3c87252d00fe2e02c5bb03bd.tar.xz
exp_script: make use of USE_IFT varible
Change-Id: I0df3cf5f7793390467ce40043df1a606fdec7eb7
-rwxr-xr-xexp_script/run_spec_from_ckpt.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/exp_script/run_spec_from_ckpt.sh b/exp_script/run_spec_from_ckpt.sh
index 2de83702f..47a030e2d 100755
--- a/exp_script/run_spec_from_ckpt.sh
+++ b/exp_script/run_spec_from_ckpt.sh
@@ -186,6 +186,12 @@ fi
OUTPUT_DIR=$GEM5_PATH/output/SPEC-$BENCHMARK-$SCHEME
CKPT_OUT_DIR=$GEM5_PATH/../gem5_ckpt/$BENCHMARK-1-ref-x86
+if [[ "$USE_IFT" == 1 ]]; then
+ OUTPUT_DIR="$OUTPUT_DIR.IFT"
+else
+ USE_IFT=0
+fi
+
echo "checkpoint direcotory: " $CKPT_OUT_DIR
echo "output directory: " $OUTPUT_DIR
@@ -235,7 +241,7 @@ $GEM5_PATH/build/X86_MESI_Two_Level/gem5.fast \
--checkpoint-dir=$CKPT_OUT_DIR \
--checkpoint-restore=10000000000 --at-instruction \
--l1d_assoc=8 --l2_assoc=16 --l1i_assoc=4 \
- --cpu-type=DerivO3CPU --needsTSO=1 --scheme=$SCHEME \
+ --cpu-type=DerivO3CPU --needsTSO=1 --scheme=$SCHEME --useIFT=$USE_IFT \
--num-dirs=1 --ruby --maxinsts=1000000000 \
--network=simple --topology=Mesh_XY --mesh-rows=1