Raspberry Pi3是独家或包容性缓存?

时间:2017-04-25 11:26:58

标签: raspberry-pi arm raspberry-pi2 raspberry-pi3 cpu-cache

Raspberry Pi 3 Model B采用四核64位ARM Cortex A53,时钟频率为1.2 GHz,具有32kB Level 1和512kB Level 2缓存。

我的问题是缓存是什么类型,是独占还是包容?我在哪里可以找到这些信息?

1 个答案:

答案 0 :(得分:0)

NXP sitearm site)中找到答案:

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.