提交 0a2689c8 编写于 作者: L Lingrui98

tage: fix updateBank calculation

上级 aaf20d9c
...@@ -479,7 +479,7 @@ class Tage extends BaseTage { ...@@ -479,7 +479,7 @@ class Tage extends BaseTage {
val updateSCMeta = u.bpuMeta.tageMeta.scMeta val updateSCMeta = u.bpuMeta.tageMeta.scMeta
val updateTageMisPred = updateMeta.taken =/= u.taken && updateIsBr val updateTageMisPred = updateMeta.taken =/= u.taken && updateIsBr
val updateBank = u.pc(log2Ceil(TageBanks), instOffsetBits) val updateBank = u.pc(log2Ceil(TageBanks)+instOffsetBits-1, instOffsetBits)
// access tag tables and output meta info // access tag tables and output meta info
for (w <- 0 until TageBanks) { for (w <- 0 until TageBanks) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册