Fix TLB refill/invalidate race condition
If an SFENCE.VMA with rs1 != x0 or rs2 != x0 happens on the same cycle as an I-TLB refill, the refill still occurs, even if the SFENCE.VMA should've flushed the entry being refilled. SFENCE.VMA with rs1=x0 and rs2=x0 is unaffected. It's exceedingly difficult, but possible, to manifest this bug. We found it by inspection (thanks @khannaudit), not by observing it in the wild.
parent
4df06ccf
Please register or sign in to comment