Fixed BHT update error.
- separated out BTB/BHT update - BHT updates counters on every branch - BTB update only on mispredicted and taken branches
This commit is contained in:
@ -287,6 +287,7 @@ class Datapath extends Module
|
||||
io.imem.btb_update.bits.pc := mem_reg_pc
|
||||
io.imem.btb_update.bits.target := io.imem.req.bits.pc
|
||||
io.imem.btb_update.bits.br_pc := mem_reg_pc
|
||||
io.imem.bht_update.bits.pc := mem_reg_pc
|
||||
io.imem.ras_update.bits.returnAddr := mem_int_wdata
|
||||
|
||||
// for hazard/bypass opportunity detection
|
||||
|
Reference in New Issue
Block a user