1
0

Always verify BTB result; don't bother flushing it

This improves CPI for things like

    lbu t0, (t0)
    j foo
    addi t0, t0, 1

where the addi would stall, causing j's misprediction check to fail,
flushing the pipeline.
This commit is contained in:
Andrew Waterman
2016-06-22 13:47:15 -07:00
parent 4c31248917
commit 7f88a00a38
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ class Frontend(implicit p: Parameters) extends CoreModule()(p) with HasL1CachePa
btb.io.btb_update := io.cpu.btb_update
btb.io.bht_update := io.cpu.bht_update
btb.io.ras_update := io.cpu.ras_update
btb.io.invalidate := io.cpu.flush_icache || io.cpu.flush_tlb // virtual tags
btb.io.invalidate := false
when (!stall && !icmiss) {
btb.io.req.valid := true
s2_btb_resp_valid := btb.io.resp.valid