read again from memory as the memory content might have changed. And synchronization of the data cache isn't done by adding an instruction. Either the cache is invalid and it's fetched directly from memory or it uses the cache data. If there is a cache and any peripheral changes the memory via DMA bypassing the cache, then the applications needs to synchronize the cache line. But I've never heard that software/compiler does this automatically.
Ok now you have me confused.🤔😭
Things are automatically fetched when needed and when a page is removed from the cache it is synchronized. Else, it may never be
Обсуждают сегодня