cpu: Modernise the branch predictor (STL and C++11)
authorAndreas Hansson <andreas.hansson@arm.com>
Wed, 13 Aug 2014 10:57:21 +0000 (06:57 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Wed, 13 Aug 2014 10:57:21 +0000 (06:57 -0400)
commit66904b9584e09a9b6b6cb382ba208ec9a527edbe
treea4c06f9f82ac4a7a5dd0f7d42e94c4cf3e4f9cdd
parent94daae6864769ffc5fff037dd18b2e8062ee672d
cpu: Modernise the branch predictor (STL and C++11)

This patch does some minor house keeping of the branch predictor by
adopting STL containers, and shifting some iterator to use range-based
for loops.

The predictor history is also changed from a list to a deque as we
never to insertion/deletion other than at the front and back.
src/cpu/pred/bpred_unit.hh
src/cpu/pred/bpred_unit_impl.hh