提交 53e3931d 编写于 作者: B bugGenerator 提交者: Yinan Xu

l2tlb: fix bug that sfence fail to flush global sp entries (#1859)

上级 89918c18
......@@ -640,7 +640,7 @@ class PtwCache()(implicit p: Parameters) extends XSModule with HasPtwConst with
when (sfence_dup(0).bits.rs2) {
// specific leaf of addr && all asid
spv := spv & (~VecInit(sp.map(_.hit(sfence_vpn, sfence_dup(0).bits.asid, ignoreAsid = true))).asUInt | spg)
spv := spv & (~VecInit(sp.map(_.hit(sfence_vpn, sfence_dup(0).bits.asid, ignoreAsid = true))).asUInt)
} .otherwise {
// specific leaf of addr && specific asid
spv := spv & (~VecInit(sp.map(_.hit(sfence_vpn, sfence_dup(0).bits.asid))).asUInt | spg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册