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回写的问题



CACHE_wbInvL1d函数会回写cache line的整数倍,问题是这样的:如果其中前面的数据是我希望回写的数据,然而这部分数据并不占据完整的cache line,则cache line中靠后面的数据也将回写,but这部分数据并不是我希望回写的,将会导致不一致的问题。不知道这种问题是怎么解决的。请明示!

  • Rui,

                  Cache的机制决定了一条cacheline的数据是被相同操作的。

                   您在分配数据memory空间的时候就需要把数据按照cacheline的整数倍申请。