未验证 提交 1bce880f 编写于 作者: S Steve Gou 提交者: GitHub

Merge pull request #1570 from OpenXiangShan/fix-ittage-alloc-target

ittage: we should write new target when alloc
......@@ -278,7 +278,7 @@ class ITTageTable
update_wdata.ctr := Mux(io.update.alloc, 2.U, inc_ctr(old_ctr, io.update.correct))
update_wdata.tag := update_tag
// only when ctr is null
update_wdata.target := Mux(ctr_null(old_ctr), update_target, io.update.old_target)
update_wdata.target := Mux(io.update.alloc || ctr_null(old_ctr), update_target, io.update.old_target)
val newValidArray = VecInit(validArray.asBools)
when (io.update.valid) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册