3 ms·
mfence clears the cache?
by pkaye 7y ago
mfence clears the cache?
- gpderetta 7y agoIt does not. Edit: it prevents store forwarding though, which is probably the attack rurban has in mind. Edit2: or more precisely it prevents any attack on the store load aliasing predictor
- deleted 7y ago[deleted]
- rurban 7y agoThanks for clarification. It only adds two fences, one into the load and one into the store ordering buffer. (not IO). But this has an as dramatic of an performance impact as a "clear cache", that's why I usually describe it that way. it just sets something like two dirty flags.