diff options
author | Pau Cabre <pau.cabre@metempsy.com> | 2018-11-17 23:21:15 +0100 |
---|---|---|
committer | Pau Cabre <pau.cabre@metempsy.com> | 2018-11-22 11:46:54 +0000 |
commit | 290a35401bbd261b4274c82354b03b3ac1898437 (patch) | |
tree | 18e6331bb6b0b2cf1894c1b98d3bfefbf5b2aa56 /src/cpu/pred/BranchPredictor.py | |
parent | 7e48e92888879b7ab81fba82c09ff6f662bb024d (diff) | |
download | gem5-290a35401bbd261b4274c82354b03b3ac1898437.tar.xz |
cpu: Fixed useful counter handling in LTAGE
Increased to 2 bits of useful counter per TAGE entry as described in the
LTAGE paper (and made the size configurable)
Changed how the useful counters are incremented/decremented as described
in the LTAGE paper
Change-Id: I8c692cc7c180d29897cb77781681ff498a1d16c8
Signed-off-by: Pau Cabre <pau.cabre@metempsy.com>
Reviewed-on: https://gem5-review.googlesource.com/c/14215
Reviewed-by: Ilias Vougioukas <ilias.vougioukas@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/cpu/pred/BranchPredictor.py')
-rw-r--r-- | src/cpu/pred/BranchPredictor.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/pred/BranchPredictor.py b/src/cpu/pred/BranchPredictor.py index a42819419..aa6cd4a25 100644 --- a/src/cpu/pred/BranchPredictor.py +++ b/src/cpu/pred/BranchPredictor.py @@ -100,6 +100,7 @@ class LTAGE(BranchPredictor): logSizeLoopPred = Param.Unsigned(8, "Log size of the loop predictor") nHistoryTables = Param.Unsigned(12, "Number of history tables") tagTableCounterBits = Param.Unsigned(3, "Number of tag table counter bits") + tagTableUBits = Param.Unsigned(2, "Number of tag table u bits") histBufferSize = Param.Unsigned(2097152, "A large number to track all branch histories(2MEntries default)") minHist = Param.Unsigned(4, "Minimum history size of LTAGE") |