core: Predict not-taken conditional branches using BTC
authorPaul Mackerras <paulus@ozlabs.org>
Tue, 7 Sep 2021 10:38:00 +0000 (20:38 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 11 Sep 2021 03:29:02 +0000 (13:29 +1000)
commit54b0e8b8c80102a7bf5fd59c5f08376eb540a1a1
tree2fead172e5924bb56a826bb81bbe63c2b0391553
parent0cdaa2778f95102fef5a16f6a98aef01cab381b8
core: Predict not-taken conditional branches using BTC

This adds a bit to the BTC to store whether the corresponding branch
instruction was taken last time it was encountered.  That lets us pass
a not-taken prediction down to decode1, which for backwards direct
branches inhibits it from redirecting fetch to the target of the
branch.  This increases coremark by about 2%.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
common.vhdl
decode1.vhdl
fetch1.vhdl
icache.vhdl