Ayaz Akram <aaqemu <at> gmail.com> writes: > > > > Hi !Look at the files inside gem5/src/cpu/pred folder. These files contain implementation of branch predictors. It should not be very hard to modify the code according to your needs. > Regards > > > On Mon, Jul 25, 2016 at 1:23 AM, Zaman, Monir <monir.zaman <at> utdallas.edu> wrote: > > > > > > > > Hello all, > I am trying to turn off the Branch Predictor that is used in the O3 CPU. I have seen 1 post in the user community asking similar question.http://comments.gmane.org/gmane.comp.emulators.m5.users/15688 > > The answer provided was to create a dummy BP which always give “Not Taken” and that should do the trick. But being new with GEM5, what/where should I be looking into to implement the trick? I know the BranchPredictor.py script and able to select BP of my choice > from the options given. > Any suggestions would be great. > > > > Monir > > > > > _______________________________________________ > gem5-users mailing listgem5-users <at> gem5.orghttp://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > > > > > > > _______________________________________________ > gem5-users mailing list > gem5-users <at> gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Hello Ayaz, I have changed the return value of the bool lookup function to NotTaken in the 2bit_local.cc But, I think I need to actually implement No Branch Prediction Unit for the Detailed CPU. When I grepped for "branch" in the O3 folder, there are branches used in different stages of the pipeline. Is there any pointer to what I should be looking for if I wanted to implement No Branch Prediction for the O3 CPU? /Monir _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
