This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cache attribute write back/write allocate for Cortex-M4

What is different between write back with write allocate and write with non write allocate on Cortex-M4.

Parents
  • the write in here means write through?

    I think that the policy is mainly to write hit and miss.

    If write hit ,write back is only write to cache but not main memory, it will be marked dirty. it would be written to main memory is this dirty cache swap out. write through is write to cache and  write to main memory.

    If write miss, means that the address you want to write is not in cache. one method is write to main memory directly, it is called no write allocate policy. The other method is that take the block corresponding to the address you want to write from main memory to cache, then you write this cache, this is called write allocate policy.

Reply
  • the write in here means write through?

    I think that the policy is mainly to write hit and miss.

    If write hit ,write back is only write to cache but not main memory, it will be marked dirty. it would be written to main memory is this dirty cache swap out. write through is write to cache and  write to main memory.

    If write miss, means that the address you want to write is not in cache. one method is write to main memory directly, it is called no write allocate policy. The other method is that take the block corresponding to the address you want to write from main memory to cache, then you write this cache, this is called write allocate policy.

Children