提交 8b1909c4 编写于 作者: W William Wang

dcache: disable hw prefetch while doing atom insts

上级 70bbe6d5
......@@ -552,10 +552,15 @@ class MemBlockImp(outer: MemBlock) extends LazyModuleImp(outer)
// for atomicsUnit, it uses loadUnit(0)'s TLB port
when (state =/= s_normal) {
when (state === s_atomics_0 || state === s_atomics_1) {
// use store wb port instead of load
loadUnits(0).io.ldout.ready := false.B
// use load_0's TLB
atomicsUnit.io.dtlb <> amoTlb
// hw prefetch should be disabled while executing atomic insts
loadUnits.map(i => i.io.prefetch_req.valid := false.B)
// make sure there's no in-flight uops in load unit
assert(!loadUnits(0).io.ldout.valid)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册