cpu: Fixed the indirect branch predictor GHR handling
authorPau Cabre <pau.cabre@metempsy.com>
Fri, 1 Mar 2019 16:32:16 +0000 (17:32 +0100)
committerJairo Balart <jairo.balart@metempsy.com>
Wed, 27 Mar 2019 09:55:09 +0000 (09:55 +0000)
commit78f1f4d8f9267b5345f5a34f113eabae2a2faac9
tree938372c3ef5540642f4c6076c58ff3925ce7d7b3
parent4fc7dfb7fbcf124461adc9df382695418a2b9dda
cpu: Fixed the indirect branch predictor GHR handling

The internal indirect predictor global history was not being updated
properly, resulting in higher than expected miss rates

Also added a parameter to set the size of the indirect predictor GHR

Change-Id: Ibc797816974cba6719da65122801e8919559a003
Signed-off-by: Pau Cabre <pau.cabre@metempsy.com>
Reported-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/16928
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Andrea Mondelli <Andrea.Mondelli@ucf.edu>
Reviewed-by: Sudhanshu Jha <sudhanshu.jha@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/cpu/pred/BranchPredictor.py
src/cpu/pred/bpred_unit.cc
src/cpu/pred/indirect.cc
src/cpu/pred/indirect.hh