Commit 5da05dbb authored by Andrew Waterman's avatar Andrew Waterman
Browse files

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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment