Re:Cache invalidation is one of the hardest problems in comp...
by debugnik on Sunday November 27, 2022 @06:58AM
(#33762357)
AArch64 processors are available with 64 and 128 byte cache lines, and big.LITTLE processors may report different icache line sizes on different cores[1], so a single thread can even be rescheduled across different icache line sizes (no idea about dcache).
[1]: https://www.mono-project.com/news/2016/09/12/arm64-icache/
I’m not sure whether a single target architecture can (either in theory or in practice) map to hardware with different line sizes. If so, another problem is that the compiler’s idea of the cache line size might not match the hardware’s.