Ok Thank You Ayaz. Let me check and get back to you.

On Thu, Jul 14, 2022 at 11:07 AM Ayaz Akram <[email protected]> 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 <[email protected]>
> 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 -- [email protected]
>> To unsubscribe send an email to [email protected]
>>
> _______________________________________________
> gem5-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to