When the data CPU wants to access is not in the cache the related block will always be copy to the cache, is this right?

When the data CPU wants to access is not in the cache the related block will always be copy to the cache, is this right?

In the above question, the related region refers to the region seted to be cachealbe.

Parents
  • Hello,

    if the access is read, the target cache block (i.e. cache line) is always allocated.

    However, if the access is write, it depends on the cache attribute.

    The below is from the ARM ARM.

    If the attribute is the write-allocate, the target block is allocated into the cache.

    Best regards,

    Yasuhiko Koumoto.

Reply
  • Hello,

    if the access is read, the target cache block (i.e. cache line) is always allocated.

    However, if the access is write, it depends on the cache attribute.

    The below is from the ARM ARM.

    If the attribute is the write-allocate, the target block is allocated into the cache.

    Best regards,

    Yasuhiko Koumoto.

Children
More questions in this forum