Skip to content

Commit d4ffd07

Browse files
Riadhschall
authored andcommitted
fixes to run the gem5 artifact
1 parent 780e402 commit d4ffd07

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,14 @@ scons build/ARM/gem5.opt -j`nproc`
139139
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:
140140

141141
```bash
142+
cd gem5
142143
./build/ARM/gem5.opt ./../scripts/se-llbp.py --bp=LLBPX
143144
```
144145
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.
145146

146147
To quickly run all models and collect the branch mispredictions run:
147148
```bash
148-
./scripts/eval_all_gem5.sh
149+
./scripts/run_all_gem5.sh
149150
```
150151
It will simulate all three models and print the branch mispredictions at the end.
151152

scripts/run_all_gem5.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ for model in $BRMODELS; do
4242
## Create output directory
4343
OUTDIR="${OUT}/${model}/"
4444

45-
./build/ARM/gem5.opt --outdir=$OUTDIR se-llbp.py --bp=$model
45+
./gem5/build/ARM/gem5.opt --outdir=$OUTDIR scripts/se-llbp.py --bp=$model
4646

4747
done
4848

0 commit comments

Comments
 (0)