提交 869210c7 编写于 作者: Y Yinan Xu

alu: use ALUOpType.isBranch(func) for isBranch

上级 3ef996e9
...@@ -56,7 +56,7 @@ class Alu extends FunctionUnit with HasRedirectOut { ...@@ -56,7 +56,7 @@ class Alu extends FunctionUnit with HasRedirectOut {
ALUOpType.getBranchType(ALUOpType.bltu) -> sltu ALUOpType.getBranchType(ALUOpType.bltu) -> sltu
) )
val isBranch = uop.cf.brUpdate.pd.isBr val isBranch = ALUOpType.isBranch(func)
val isRVC = uop.cf.brUpdate.pd.isRVC val isRVC = uop.cf.brUpdate.pd.isRVC
val taken = LookupTree(ALUOpType.getBranchType(func), branchOpTable) ^ ALUOpType.isBranchInvert(func) val taken = LookupTree(ALUOpType.getBranchType(func), branchOpTable) ^ ALUOpType.isBranchInvert(func)
val target = (pc + offset)(VAddrBits-1,0) val target = (pc + offset)(VAddrBits-1,0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册