Hi Jason
I did follow that tutorial - but I was wondering where I must instantiate
my new SimObject - should it be in se.py or in some other file? I want my
value predictor only for the O3CPU model.

Thanks

Pawan B Joshi
Electrical and Computer Engineering
The University of Texas-Austin

On Mon, Apr 2, 2018 at 12:06 PM, Jason Lowe-Power <ja...@lowepower.com>
wrote:

> See http://learning.gem5.org/book/part2/helloobject.html. That chapter
> explains all of the details of creating a new SimObject and instantiating
> it.
>
> Jason
>
> On Sun, Apr 1, 2018 at 4:12 PM Pawan Joshi <pawanjoshi...@gmail.com>
> wrote:
>
>> Hello
>> I am adding this new Value predictor to the O3 pipeline, but I am unsure
>> where to instantiate it? If I am correct, I see that the branch predictor
>> is instantiated as a parameter to the DerivO3CPU class -
>>
>> branchPred = Param.BranchPredictor(TournamentBP(numThreads =
>>                                                        Parent.numThreads),
>>                                        "Branch Predictor")
>>
>>
>> but I don't want my value predictor to be a parameter as I have only one
>> type of value predictor. Where should I call this?
>>
>> vpred = ValuePredictor("this is a simple value predictor");
>>
>>
>>
>> Thanks
>> Pawan B Joshi
>> Electrical and Computer Engineering
>> The University of Texas-Austin
>> _______________________________________________
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to