Hi,
Did anyone know how to add branch prediction in TimingSimpleCPU. The branch
prediction is defined in the base.cc but I don't know how to connect it
with the TimingSimpleCPU. Please help me with this.
Thank you
Jeena Samuel
Hi Jeena,
If you look at the src/cpu/simple/BaseSimpleCPU.py file, you will see that
the branchpred is initialized as NULL:
"branchPred = Param.BranchPredictor(NULL, "Branch Predictor")"
So, you need to initialize the branchPred parameter to some real branchPred
object in the python script you are using to run a gem5 simulation. For an
example, you can look at how the branchPred is initialized in
src/cpu/o3/BaseO3CPU.py.
-Ayaz
On Thu, Jun 23, 2022 at 9:41 PM Jeena Samuel jeenasamuel30@gmail.com
wrote:
Hi,
Did anyone know how to add branch prediction in TimingSimpleCPU. The
branch prediction is defined in the base.cc but I don't know how to connect
it with the TimingSimpleCPU. Please help me with this.
Thank you
Jeena Samuel
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org
Ok Thank You Ayaz. Let me check and get back to you.
On Thu, Jul 14, 2022 at 11:07 AM Ayaz Akram yazakram@ucdavis.edu wrote:
Hi Jeena,
If you look at the src/cpu/simple/BaseSimpleCPU.py file, you will see that
the branchpred is initialized as NULL:
"branchPred = Param.BranchPredictor(NULL, "Branch Predictor")"
So, you need to initialize the branchPred parameter to some real
branchPred object in the python script you are using to run a gem5
simulation. For an example, you can look at how the branchPred is
initialized in src/cpu/o3/BaseO3CPU.py.
-Ayaz
On Thu, Jun 23, 2022 at 9:41 PM Jeena Samuel jeenasamuel30@gmail.com
wrote:
Hi,
Did anyone know how to add branch prediction in TimingSimpleCPU. The
branch prediction is defined in the base.cc but I don't know how to connect
it with the TimingSimpleCPU. Please help me with this.
Thank you
Jeena Samuel
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org