cpu: Add an indirect branch target predictor
authorMitch Hayenga <mitch.hayenga@arm.com>
Tue, 5 Apr 2016 16:48:37 +0000 (11:48 -0500)
committerMitch Hayenga <mitch.hayenga@arm.com>
Tue, 5 Apr 2016 16:48:37 +0000 (11:48 -0500)
commit0fd4bb7f12d8a633f3ff0abe61d4f3a78bca6f84
tree865cfc3eb0943a21eea8c07676cfd4ce458d34c2
parent3f6874cb295695a225fca6825bfe24a4b97641fd
cpu: Add an indirect branch target predictor

This patch adds a configurable indirect branch predictor that can be indexed
by a combination of GHR and path history hashes. Implements the functionality
described in:

"Target prediction for indirect jumps" by Chang, Hao, and Patt
http://dl.acm.org/citation.cfm?id=264209

This is a re-spin of fb9d142 after the revert (bd1c6789).
src/cpu/pred/BranchPredictor.py
src/cpu/pred/SConscript
src/cpu/pred/bi_mode.cc
src/cpu/pred/bi_mode.hh
src/cpu/pred/bpred_unit.cc
src/cpu/pred/bpred_unit.hh
src/cpu/pred/indirect.cc [new file with mode: 0644]
src/cpu/pred/indirect.hh [new file with mode: 0644]
src/cpu/pred/tournament.cc
src/cpu/pred/tournament.hh