Raspberry Pi 3 Model B采用四核64位ARM Cortex A53,时钟频率为1.2 GHz,具有32kB Level 1和512kB Level 2缓存。
我的问题是缓存是什么类型,是独占还是包容?我在哪里可以找到这些信息?
答案 0 :(得分:0)
For data accesses, the Cortex-A53 uses "tends towards exclusive" cache allocation policy:
"Data is allocated to the L2 cache only when evicted from the L1 memory system, not when first fetched from the system. The only exceptions to this rule are for memory marked with the inner transient hint, or for non-temporal loads, see Non-temporal loads, that are only ever allocated to the L2 cache. The L1 cache can prefetch data from the system, without data being evicted from the L2 cache."
For instruction fetches, the Cortex-A53 uses "tends towards inclusive" cache allocation policy:
"Instructions are allocated to the L2 cache when fetched from the system and can be invalidated during maintenance operations."
It is impossible to modify the this cache policy, this is non-configurable.