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.

C6678 cache

您好:问题简单描述如下:
多核编程,所有段放在DDR里面,L1、LL2全都作为cache,采用主从模式 ,定义全局变量i=0,core0调用函数实现i++,然后通过notify一次通知core1-core7,也调用该函数实现i++,最后实验显示,core0-core7打印结果都是i=1。

请问这是什么原因,不是应该core0打印i=1,core1打印i=2.........我cache没有进行一致性维护,不知道是不是这个原因?

谢谢!