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

Behavior for other data on a STR (ARMv7-A)

When the following line is executed, what is the behavior with respect to the other words in the cache line?

STR r1, [r0]

The 4 bytes of data in r1 is written to the address in r0. But cache-lines are 32 bytes long. Assuming write-through (and ignoring store-buffers), are all 32 bytes written to backing memory?

I think that this is how the cache behaves, and this question seems to confirm it: https://community.arm.com/processors/f/discussions/1318/memory-acces-and-cache/4282#4282

I haven't found anything explicit in the ARM ARM about this, so a pointer to the right page there would also really be appreciated!

Thanks,

James