MMU关闭时Cache的缓存策略是怎样的
引流關(guān)鍵詞:緩存,高速緩存,cache, CCI,CMN,CCI-550,CCI-500,DSU,SCU,L1,L2,L3,system cache, Non-cacheable,Cacheable, non-shareable,inner-shareable,outer-shareable, optee、ATF、TF-A、Trustzone、optee3.14、MMU、VMSA、cache、TLB、arm、armv8、armv9、TEE、安全、內(nèi)存管理、頁表…
快速鏈接:
.
👉👉👉 個(gè)人博客筆記導(dǎo)讀目錄(全部) 👈👈👈
在學(xué)習(xí)MMU章節(jié)時(shí),我們發(fā)現(xiàn)在頁表的entry中,BIT[4:2]指向了MAIR寄存器,該寄存器描述了內(nèi)存屬性,其實(shí)就是cache的緩存策略屬性(inner\outer\shareable\cacheable)。 也就是頁表中的每一個(gè)entry都指向了一個(gè)這樣的Attr。 那么我如果把MMU disable了呢? 就沒有頁表的事了,那么此時(shí)緩存的策略是怎樣的呢?
我們在ARM ARM的D5.2.9 The effects of disabling a stage of address translation章節(jié)的Behavior when stage 1 address translation is disabled 中找到答案
MMU關(guān)閉后,cache的緩存策略總結(jié)如下:
- data的訪問,視為 Device-nGnRnE
- 指令的訪問,要根據(jù)SCTLR_ELx.I的值:
(1)SCTLR_ELx.I == 0 ,視為Non-cacheable、Outer Shareable
(2)SCTLR_ELx.I == 1 ,
Cacheable
Inner Write-Through, Read-Allocate, No Write-Allocate
Outer Write-Through, Read-Allocate, No Write-Allocate
Outer Shareable attribute
總結(jié)
以上是生活随笔為你收集整理的MMU关闭时Cache的缓存策略是怎样的的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 03-cache的查询原理
- 下一篇: armv9的RME简介