总是弄不明白cache_inv,cache_wb以及cache_wbinv都有什么区别,请专家指教!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
cache_inv是清除cache line的valid 比特,使cache line中缓存的buffer无效,在inv以后,如果core再访问这个buffer, cache就会再次从memory把它刷进来。
cache_wb是把cache中的dirty line回写到memory
如果一个cache line是dirty的说明这个buffer的内容已经被core修改,只做invalidate就会使新的内容丢失,所以要有wbinv,就是先把dirty的cache line回写到memory再使这个cache line 无效。