cpu: Fix BTB threading oversight
authorMitch Hayenga <mitch.hayenga@arm.com>
Tue, 5 Apr 2016 16:44:27 +0000 (11:44 -0500)
committerMitch Hayenga <mitch.hayenga@arm.com>
Tue, 5 Apr 2016 16:44:27 +0000 (11:44 -0500)
commit7bc52af7716168baa5deb28bb88475ddbba5d62a
tree23cf6a6c94e8386b2c64c210a4a9e6962234faf8
parentf902c0218ae3a8df558f1427302fbf0931b8f7d7
cpu: Fix BTB threading oversight

The extant BTB code doesn't hash on the thread id but does check the
thread id for 'btb hits'.  This results in 1-thread of a multi-threaded
workload taking a BTB entry, and all other threads missing for the same branch
missing.
src/cpu/pred/bpred_unit.cc
src/cpu/pred/btb.cc
src/cpu/pred/btb.hh