cpu: Proposal for changing the indirect branch predictor interface
authorJairo Balart <jairo.balart@metempsy.com>
Sun, 6 Jan 2019 19:35:11 +0000 (20:35 +0100)
committerPau Cabre <pau.cabre@metempsy.com>
Fri, 8 Feb 2019 22:31:27 +0000 (22:31 +0000)
commitbcf6983bc605b884fba52ec74634bddfd395cd5e
tree1ee849f2a930205851dbeeaf173dbe048affed0e
parent4f4846c5327e4780bd8e714bada80bd15dc1fc51
cpu: Proposal for changing the indirect branch predictor interface

Now the indirect branch predictor handles its own GHR instead of getting
the one from the direction predictor.

Also, now the commit method of the indirect predictor is called for every
pending branch on an update, as the indirect predictors may want to update
their interal structures/histories with the information of each branch.

Change-Id: I7053fbea42a53960a3bc1ba32912cc99c160511e
Reviewed-on: https://gem5-review.googlesource.com/c/15318
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
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
src/cpu/pred/indirect.hh
src/cpu/pred/tage.cc
src/cpu/pred/tage.hh
src/cpu/pred/tournament.cc
src/cpu/pred/tournament.hh