Searched hist:8463 (Results 1 - 1 of 1) sorted by relevance

/gem5/src/cpu/pred/
H A Dtournament.cc8463:7a48916a32a8 Sun Jul 10 01:56:00 EDT 2011 Mrinmoy Ghosh <Mrinmoy.Ghosh@arm.com> Branch predictor: Fixes the tournament branch predictor.

Branch predictor could not predict a branch in a nested loop because:
1. The global history was not updated after a mispredict squash.
2. The global history was updated in the fetch stage. The choice predictors
that were updated used the changed global history. This is incorrect, as
it incorporates the state of global history after the branch in
encountered. Fixed update to choice predictor using the global history
state before the branch happened.
3. The global predictor table was also updated using the global history state
before the branch happened as above.

Additionally, parameters to initialize ctr and history size were reversed.

Completed in 10 milliseconds