提交 3a2cb0ee 编写于 作者: L Lingrui98

ftq: new br could be inserted into br(0) when the entry is inited with a jump

上级 2fccb5db
......@@ -266,7 +266,7 @@ class FTBEntryGen(implicit p: Parameters) extends XSModule with HasBackendRedire
// vec(i) means new br will be inserted BEFORE old br(i)
val new_br_insert_onehot = VecInit((0 until numBr).map{
i => i match {
case 0 => oe.brValids(0) && new_br_offset < oe.brOffset(0)
case 0 => !oe.brValids(0) || new_br_offset < oe.brOffset(0)
case idx => oe.brValids(idx-1) && new_br_offset > oe.brOffset(idx-1) &&
(!oe.brValids(idx) || new_br_offset < oe.brOffset(idx))
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册