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)
commit1578d2d0b66d995684cee77b3fe527ed0493d41c
tree120b81ec01c889a41c26ddbc6e26cb0434db764b
parent7bc52af7716168baa5deb28bb88475ddbba5d62a
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
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