Don't update BTB when garbage was fetched

This commit is contained in:
Andrew Waterman authored and Yunsup Lee committed 2013-08-26 14:53:04 -07:00
1 parent 44e92edf92
commit b9f6e1a7ec
1 file changed
+1 -1
+1 -1
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