initial commit

This commit is contained in:
Carlos Gutierrez
2025-09-21 01:17:26 -04:00
commit cd69096346
150 changed files with 87323 additions and 0 deletions

24
branchPrediction/run_bp.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
set -eu
GEM5=/home/carlos/projects/gem5/gem5src/gem5
BIN="$GEM5/build/X86/gem5.opt"
SE="$GEM5/configs/deprecated/example/se.py"
RUNROOT=/home/carlos/projects/gem5/gem5-data/results/bp
CMD=/home/carlos/projects/gem5/gem5-run/memtouch/memtouch
mkdir -p "$RUNROOT"
# Adjust this list to whatever `"$SE" --list-bp-types` prints on your build
PRED_LIST="LocalBP TournamentBP BiModeBP LTAGE"
for P in $PRED_LIST; do
OUT="$RUNROOT/$P"
mkdir -p "$OUT"
echo "[*] Running $P -> $OUT"
"$BIN" --outdir="$OUT" \
"$SE" --cmd="$CMD" \
--cpu-type=DerivO3CPU --caches --l2cache \
--bp-type="$P" --maxinsts=50000000 \
> "$OUT/simout" 2> "$OUT/simerr"
done
echo "[*] Done."