提交 61711d24 编写于 作者: W William Wang

LSQ: fix vaddrModule raddr

* Alternative plan: use async vaddr module
上级 092c5352
......@@ -604,7 +604,8 @@ class LoadQueue extends XSModule
}
// Read vaddr for mem exception
vaddrModule.io.raddr(0) := deqPtr + io.roq.lcommit
// Note that both io.roq.lcommit and RegNext(io.roq.lcommit) should be take into consideration
vaddrModule.io.raddr(0) := (deqPtrExt + commitCount + io.roq.lcommit).value
io.exceptionAddr.vaddr := vaddrModule.io.rdata(0)
// misprediction recovery / exception redirect
......
......@@ -104,7 +104,9 @@ class StoreQueue extends XSModule with HasDCacheParameters with HasCircularQueue
dataModule.io.raddr(i) := deqPtrExtNext(i).value
paddrModule.io.raddr(i) := deqPtrExtNext(i).value
}
vaddrModule.io.raddr(0) := cmtPtr + io.roq.scommit
// Note that both io.roq.scommit and RegNext(io.roq.scommit) should be take into consideration
vaddrModule.io.raddr(0) := (cmtPtrExt(0) + commitCount + io.roq.scommit).value
/**
* Enqueue at dispatch
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册