|
From: Nicholas N. <nj...@cs...> - 2007-07-05 21:53:18
|
On Thu, 5 Jul 2007, Julian Seward wrote: > As far as the immediate problem goes: a couple months ago I extended > cachegrind to do branch prediction simulation, and so had to solve this > exact problem. It's not in the 3.2.X series but it is in the current > trunk. svn co svn://svn.valgrind.org/valgrind/trunk and look at cg_main.c > around line 1020, specifically the 'case Ist_Exit:' ... stuff. > > The branch events are fed through to the simulator in cg_branchpred.c. > It probably has a fairly high level of bogosity. I think "It" in that last sentence refers to the branch simulation, rather than the rest of the tool -- ie. it identifies the branches ok. However, Daniel Jimenez did say it was a reasonable basic simulator, although some of the parameters could be tweaked. Nick |