提交 7335093e 编写于 作者: L Lingrui98

ifu: fix null pointer bug when compiling

上级 603e72f2
......@@ -107,7 +107,6 @@ class IFU extends XSModule with HasIFUConst
val icache = Module(new ICache)
icache.io.mem_grant <> io.icacheMemGrant
icache.io.fencei := io.fencei
icache.io.flush := Cat(if3_flush, if2_flush)
val pd = Module(new PreDecode)
val loopBuffer = if(EnableLB) { Module(new LoopBuffer) } else { Module(new FakeLoopBuffer) }
io.ptw <> TLB(
......@@ -432,6 +431,7 @@ class IFU extends XSModule with HasIFUConst
loopBufPar.fetchReq := if3_pc
icache.io.req.bits.mask := mask(if1_npc)
icache.io.flush := Cat(if3_flush, if2_flush)
bpu.io.cfiUpdateInfo <> io.cfiUpdateInfo
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册