Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion scripts/run_all_gem5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading