Hello, In the stats file (in my case O3 model), there's 'system.cpu.BPredUnit.condIncorrect'. Then, you can look for it in the O3 cpu code and see what function updates it. If I'm not wrong, there're signals comming from pipestages to inform when there's a branch misprediction (squash). By there:
src/cpu/o3/fetch_impl.hh: DefaultFetch<Impl>::checkSignalsAndUpdate(ThreadID tid) Regards, -- Fernando A. Endo, PhD student and researcher Université de Grenoble, UJF France 2013/6/28 ali bagherian <[email protected]> > Hi, > > Which file or function in the Gem5 detects branch misperdiction? > > Thanks for you help, > Ali > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
