提交 12dcbb5b 编写于 作者: Fa_wang's avatar Fa_wang

predecode: fixed ret type(mbpright 63629->66373)

上级 ada418c1
......@@ -14,7 +14,7 @@ trait HasPdconst{ this: XSModule =>
val rd = Mux(isRVC(instr), 1.U, instr(11,7))
val rs = Mux(isRVC(instr), Mux(brType === BrType.jal, 0.U, instr(11, 7)), instr(19, 15))
val isCall = (brType === BrType.jal || brType === BrType.jalr) && isLink(rd)
val isRet = brType === BrType.jalr && isLink(rs) && (!isLink(rd) && !isRVC(instr) || isRVC(instr))
val isRet = brType === BrType.jalr && isLink(rs) && (!isLink(rd) && !isRVC(instr) || isRVC(instr)&&instr(12)===1) // c.jr is not ret?
List(brType, isCall, isRet)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册