1
0

Don't update BTB when garbage was fetched

This commit is contained in:
Andrew Waterman 2013-08-24 14:40:13 -07:00 committed by Yunsup Lee
parent 44e92edf92
commit b9f6e1a7ec

View File

@ -655,7 +655,7 @@ class Control(implicit conf: RocketConfiguration) extends Component
Mux(!ex_reg_btb_hit, PC_EX, // mispredicted taken branch
PC_EX4))))) // mispredicted not taken branch
io.imem.req.bits.mispredict := !take_pc_wb && take_pc_ex
io.imem.req.bits.mispredict := !take_pc_wb && take_pc_ex && !ex_reg_xcpt
io.imem.req.bits.taken := !ex_reg_btb_hit || ex_reg_jalr
io.imem.req.valid := take_pc