gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Adding branch predictor to simple-riscv.py

AN
Aran Nokan
Mon, Dec 18, 2023 6:24 PM

I am a newcomer to gem5 and RISC-V and trying to understand it. I started
with simple-riscv.py from the gem5 config files. Now I want to see the
impact of different branch predictors. So, I would like to add a branch
predictor to this initial configuration.

Could you please give a hint to add a branch predictor to this example and
save the data from the behavior of the branch predictor?

https://github.com/gem5/gem5/blob/stable/configs/learning_gem5/part1/simple-riscv.py

Sincerely
Aran

I am a newcomer to gem5 and RISC-V and trying to understand it. I started with simple-riscv.py from the gem5 config files. Now I want to see the impact of different branch predictors. So, I would like to add a branch predictor to this initial configuration. Could you please give a hint to add a branch predictor to this example and save the data from the behavior of the branch predictor? https://github.com/gem5/gem5/blob/stable/configs/learning_gem5/part1/simple-riscv.py Sincerely Aran