在2024年10月29日十月 下午8:56,Jiaxun Yang写道: [...] >> Worse still, if the speculative approach involved a Conditional Store >> (SC): will it be restored? No, because - the manual says - if the >> cache is involved, then it won't be restored, so this is a real mess >> that needs at least a sw barrier. > > I don't really know R10k implementation details, but IMHO since SC can > only change a cacheline between two exclusive states, it doesn't matter > that much.... For LLSC I'm wrong. See: https://inbox.sourceware.org/gcc-patches/490A90F4.6040601@xxxxxxxxxx/ Thanks -- - Jiaxun