From 25bb3d8a4a5996ea453cc76ac7e6441a36ecbbc4 Mon Sep 17 00:00:00 2001 From: Ria Date: Sat, 6 Dec 2025 20:57:03 +0000 Subject: [PATCH] fixes to run the gem5 artifact --- README.md | 3 ++- scripts/run_all_gem5.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c39e3bc..93e3d19 100644 --- a/README.md +++ b/README.md @@ -139,13 +139,14 @@ scons build/ARM/gem5.opt -j`nproc` The `scripts` folder contains a simple configuration script (`se-llbp.py`) to run a hello world program in gem5's syscall emulation mode. You can run the simulation as follows: ```bash +cd gem5 ./build/ARM/gem5.opt ./../scripts/se-llbp.py --bp=LLBPX ``` This will run the hello world program with LLBP-X as the branch predictor. Can change the `--bp` argument to `LLBPX`, `LLBP`, or `TSL64k` to simulate the other branch predictor models. To quickly run all models and collect the branch mispredictions run: ```bash -./scripts/eval_all_gem5.sh +./scripts/run_all_gem5.sh ``` It will simulate all three models and print the branch mispredictions at the end. diff --git a/scripts/run_all_gem5.sh b/scripts/run_all_gem5.sh index d0468b0..560d776 100755 --- a/scripts/run_all_gem5.sh +++ b/scripts/run_all_gem5.sh @@ -42,7 +42,7 @@ for model in $BRMODELS; do ## Create output directory OUTDIR="${OUT}/${model}/" - ./build/ARM/gem5.opt --outdir=$OUTDIR se-llbp.py --bp=$model + ./gem5/build/ARM/gem5.opt --outdir=$OUTDIR scripts/se-llbp.py --bp=$model done