提交 cd706467 编写于 作者: L Lingrui98

ftq: fix a bug in fallThroughError()

上级 f45bae9c
......@@ -33,7 +33,7 @@ class FetchRequestBundle(implicit p: Parameters) extends XSBundle {
def carryPos = instOffsetBits+log2Ceil(PredictWidth)+1
def getLower(pc: UInt) = pc(instOffsetBits+log2Ceil(PredictWidth), instOffsetBits)
val carry = startAddr(carryPos) =/= fallThruAddr(carryPos)
carry && getLower(startAddr) > getLower(fallThruAddr)
!carry && getLower(startAddr) > getLower(fallThruAddr)
}
override def toPrintable: Printable = {
p"[start] ${Hexadecimal(startAddr)} [pft] ${Hexadecimal(fallThruAddr)}" +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册