当前位置: 首页 > news >正文

好的手机网站建设公司项目推广网站

好的手机网站建设公司,项目推广网站,广州app客户端开发,公司网站建设企业网站ARMv8 TTBRx寄存器 1 TTBR0_ELx and TTBR1_ELx2 TTBR0_ELx2.1 TTBR0_EL12.2 TTBR0_EL22.3 TTBR0_EL33 TTBR13.1 TTBR1_EL13.2 TTBR1_EL2 4 访问TTBRx寄存器4.1 TTBR0_ELx4.2 TTBR1_ELx 5 TTBRx保留的是物理地址还是虚拟地址5.1 保存的是物理地址还是虚拟地址5.2 为什么是物理地…

ARMv8 TTBRx寄存器

  • 1 TTBR0_ELx and TTBR1_ELx
  • 2 TTBR0_ELx
    • 2.1 TTBR0_EL1
    • 2.2 TTBR0_EL2
    • 2.3 TTBR0_EL3
    • 3 TTBR1
    • 3.1 TTBR1_EL1
    • 3.2 TTBR1_EL2
  • 4 访问TTBRx寄存器
    • 4.1 TTBR0_ELx
    • 4.2 TTBR1_ELx
  • 5 TTBRx保留的是物理地址还是虚拟地址
    • 5.1 保存的是物理地址还是虚拟地址
    • 5.2 为什么是物理地址而不是虚拟地址

1 TTBR0_ELx and TTBR1_ELx

Selection between TTBR0_ELx and TTBR1_ELx when two VA ranges are supported.
支持两个 VA 范围时,在 TTBR0_ELx 和 TTBR1_ELx 之间进行选择。
Every translation table walk starts by accessing the translation table addressed by the TTBR_ELx for the stage 1 translation for the required translation regime.
每个转换表遍历都从访问由 TTBR_ELx 寻址的转换表开始,以实现所需转换机制的第 1 阶段转换。
For a stage 1 translation that can support two VA ranges, Figure D5-14 shows this VA range split when using 48-bit
VAs, and:
对于可支持两个 VA 范围的第 1 阶段转换,图 D5-14 显示了在使用 48 位 VA 时的 VA 范围划分。

  • TTBR0_ELx points to the initial translation table for the lower VA range, that starts at address 0x0000000000000000
  • TTBR0_ELx 指向从地址 0x0000000000000000 开始的低 VA 范围的初始转换表
  • TTBR1_ELx points to the initial translation table for the upper VA range, that runs up to address 0xFFFFFFFFFFFFFFFF.
  • TTBR1_ELx 指向 VA 上限值范围的初始转换表,该表最高可达地址 0xFFFFFFFFFFFFFFFF。
    在这里插入图片描述
    As Figure D5-14 shows, for 48-bit VAs:
  • The address range translated using TTBR0_ELx is 0x0000000000000000 to 0x0000FFFFFFFFFFFF.
  • 使用 TTBR0_ELx 转换的地址范围为 0x000000000000 至 0x0000FFFFFFFF。
  • The address range translated using TTBR1_ELx is 0xFFFF000000000000 to 0xFFFFFFFFFFFFFFFF.
  • 使用 TTBR1_ELx 转换的地址范围为 0xFFFF000000000000 至 0xFFFFFFFFFFFFFFFF。
    Which TTBR_ELx is used depends only on the VA presented for translation. The most significant bits of the VA must all be the same value and:
    使用哪个 TTBR_ELx 仅取决于所提供的 VA 是否需要转换。VA 的最高有效位必须全部为相同的值,并且:
  • If the most significant bits of the VA are zero, then TTBR0_ELx is used.
  • 如果 VA 的最有效位为零,则使用 TTBR0_ELx。
  • If the most significant bits of the VA are one, then TTBR1_ELx is used.
  • 如果 VA 的最有效位为 1,则使用 TTBR1_ELx。

2 TTBR0_ELx

2.1 TTBR0_EL1

TTBR0_EL1, Translation Table Base Register 0 (EL1)
The TTBR0_EL1 characteristics are:
Purpose
Holds the base address of the translation table for the initial lookup for stage 1 of the translation of an address from the lower VA range in the EL1&0 translation regime, and other information for this translation regime.
保存转换表的基地址,用于在 EL1&0 转换机制中从较低 VA 范围转换地址的第 1 阶段初始查找,以及该转换机制的其他信息。
Configurations
AArch64 System register TTBR0_EL1[63:0] is architecturally mapped to AArch32 System register TTBR0[63:0].
AArch64 系统寄存器 TTBR0_EL1[63:0]在架构上映射到 AArch32 系统寄存器
Attributes
TTBR0_EL1 is a 64-bit register.
Field descriptions
The TTBR0_EL1 bit assignments are:
在这里插入图片描述
ASID, bits [63:48]
An ASID for the translation table base address. The TCR_EL1.A1 field selects either TTBR0_EL1.ASID or TTBR1_EL1.ASID.
翻译表基址的 ASID。TCR_EL1.A1 字段选择 TTBR0_EL1.ASID 或 TTBR1_EL1.ASID。
If the implementation has only 8 bits of ASID, then the upper 8 bits of this field are RES0.
如果实现只有 8 位 ASID,则该字段的高 8 位为 RES0。
This field resets to an architecturally UNKNOWN value.
该字段重置为一个架构上未知的值。
BADDR, bits [47:1]
Translation table base address, A[47:x] or A[51:x], bits[47:1].
转换表基址,A[47:x] 或 A[51:x],位 [47:1]。
Note:

  • Translation table base addresses of 52 bits, A[51:x], are supported only in an implementation that includes ARMv8.2-LPA and is using the 64KB translation granule.
  • 只有在包含 ARMv8.2-LPA 并使用 64KB 转换粒度的实施中,才支持 52 位的转换表基址 A[51:x]。
  • A translation table must be aligned to the size of the table, except that when using a translation table base address larger than 48 bits the minimum alignment of a table containing fewer than eight entries is 64 bytes.
  • 翻译表必须根据表的大小对齐,但当使用的翻译表基址大于 48 位时,包含少于 8 个条目的翻译表的最小对齐方式为 64 字节。

2.2 TTBR0_EL2

TTBR0_EL2, Translation Table Base Register 0 (EL2)
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
A translation table must be aligned to the size of the table, except that when using a translation table base address larger than 48 bits the minimum alignment of a table containing fewer than eight entries is 64 bytes.

2.3 TTBR0_EL3

TTBR0_EL3, Translation Table Base Register 0 (EL3)
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

3 TTBR1

3.1 TTBR1_EL1

TTBR1_EL1, Translation Table Base Register 1 (EL1)
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

3.2 TTBR1_EL2

TTBR1_EL2, Translation Table Base Register 1 (EL2)
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

4 访问TTBRx寄存器

4.1 TTBR0_ELx

读TTBR0_ELx寄存器的值到普通寄存器中

mrs <Xt>, TTBR0_ELx

将普通寄存器Xt的值写入TTBR0_ELx寄存器中

msr TTBR0_ELx, <Xt>

4.2 TTBR1_ELx

读TTBR1_ELx寄存器的值到普通寄存器中

mrs <Xt>, TTBR1_ELx

将普通寄存器Xt的值写入TTBR1_ELx寄存器中

msr TTBR1_ELx, <Xt>

5 TTBRx保留的是物理地址还是虚拟地址

5.1 保存的是物理地址还是虚拟地址

在ARMv8架构中,TTBR(Translation Table Base Register)寄存器保存的是一级页表的物理地址

ARMv8架构使用了分页内存管理方式。页表包含了虚拟地址到物理地址的映射,当CPU需要访问内存时,硬件会根据虚拟地址查找页表,以获得对应的物理地址。

页表本身也在内存中,因此需要有一个方式让硬件知道它在哪里。这就是TTBR寄存器的用途。当页表需要被查找时,硬件会从TTBR寄存器中读出页表的物理地址,然后再根据虚拟地址在页表中查找对应的物理地址。因此,TTBR寄存器中保存的是一级页表的物理地址。

5.2 为什么是物理地址而不是虚拟地址

使用物理地址而非虚拟地址的主要原因是为了避免递归和降低复杂性。

如果TTBR保存的是虚拟地址,那在转换虚拟地址为物理地址时,就需要先找到页表的物理地址,而页表的虚拟地址又需要做同样的转换,这就形成了无限递归,无法完成寻址。

其次,从虚拟地址转化到物理地址是一个非常频繁的操作,如果在这个过程中还要再次进行地址转化,效率将极其低下。从物理地址直接索引可以减少时间和复杂性。

保存物理地址还降低了处理器在地址转换时的硬件实现复杂性,处理器每次进行地址转换时,可以直接从TTBR加载页表的物理基地址,不需要再经过一次虚拟到物理的转换。

因此,为了解决这种递归问题,同时提高处理器的效率和简化硬件设计,页表的地址需要是物理地址。


文章转载自:
http://vassalic.hjyw.cn
http://herrnhuter.hjyw.cn
http://gladiolus.hjyw.cn
http://skilled.hjyw.cn
http://embryophyte.hjyw.cn
http://cephaloid.hjyw.cn
http://sward.hjyw.cn
http://unreversed.hjyw.cn
http://vicugna.hjyw.cn
http://metopon.hjyw.cn
http://sniveler.hjyw.cn
http://issuer.hjyw.cn
http://addlebrained.hjyw.cn
http://sartor.hjyw.cn
http://microfolio.hjyw.cn
http://tan.hjyw.cn
http://business.hjyw.cn
http://repellency.hjyw.cn
http://totalitarianism.hjyw.cn
http://fibrose.hjyw.cn
http://decistere.hjyw.cn
http://vitrum.hjyw.cn
http://masham.hjyw.cn
http://nintendo.hjyw.cn
http://intercultural.hjyw.cn
http://ringside.hjyw.cn
http://reason.hjyw.cn
http://assumably.hjyw.cn
http://energy.hjyw.cn
http://formularism.hjyw.cn
http://libel.hjyw.cn
http://vulnerate.hjyw.cn
http://rumple.hjyw.cn
http://accounting.hjyw.cn
http://houselet.hjyw.cn
http://righteous.hjyw.cn
http://superscript.hjyw.cn
http://transactinide.hjyw.cn
http://cyberspace.hjyw.cn
http://kenya.hjyw.cn
http://thorshavn.hjyw.cn
http://turrethead.hjyw.cn
http://farinha.hjyw.cn
http://tachyhydrite.hjyw.cn
http://hazing.hjyw.cn
http://epithalamium.hjyw.cn
http://outline.hjyw.cn
http://welfarite.hjyw.cn
http://continue.hjyw.cn
http://overstrength.hjyw.cn
http://letup.hjyw.cn
http://frisure.hjyw.cn
http://catholicize.hjyw.cn
http://reconcilably.hjyw.cn
http://rhochrematician.hjyw.cn
http://missend.hjyw.cn
http://toecap.hjyw.cn
http://workstation.hjyw.cn
http://lissotrichous.hjyw.cn
http://thicken.hjyw.cn
http://plainspoken.hjyw.cn
http://adz.hjyw.cn
http://autoff.hjyw.cn
http://giessen.hjyw.cn
http://bestrewn.hjyw.cn
http://jobmaster.hjyw.cn
http://inadvertence.hjyw.cn
http://writ.hjyw.cn
http://phosphoroscope.hjyw.cn
http://loimic.hjyw.cn
http://mermaid.hjyw.cn
http://puerperal.hjyw.cn
http://herdman.hjyw.cn
http://orrery.hjyw.cn
http://intilted.hjyw.cn
http://earstone.hjyw.cn
http://symbolization.hjyw.cn
http://fermentum.hjyw.cn
http://collect.hjyw.cn
http://allspice.hjyw.cn
http://heirdom.hjyw.cn
http://monthly.hjyw.cn
http://ubiquitously.hjyw.cn
http://savanna.hjyw.cn
http://summer.hjyw.cn
http://sprayer.hjyw.cn
http://seise.hjyw.cn
http://unfamous.hjyw.cn
http://splendour.hjyw.cn
http://appendicitis.hjyw.cn
http://occipita.hjyw.cn
http://vandalic.hjyw.cn
http://streetward.hjyw.cn
http://naysaid.hjyw.cn
http://clarkia.hjyw.cn
http://magnetotactic.hjyw.cn
http://sexualia.hjyw.cn
http://choledochostomy.hjyw.cn
http://pancreatin.hjyw.cn
http://badger.hjyw.cn
http://www.dt0577.cn/news/68138.html

相关文章:

  • php做网站如何架构网络销售的好处和意义
  • 淘宝网站怎么做网站推广文章的推广渠道
  • 摄影网站的模板网络平台怎么创建
  • 常山网站建设个人怎么做百度竞价
  • 网站建设常见的问题seo公司运营
  • 企业网站建设一条重庆快速网络推广
  • 安徽网站排名网络推广公司北京
  • 河南省建设工程造价信息网站长沙县网络营销咨询
  • 河北省市场监督管理局深圳搜索排名优化
  • 东莞互联网推广广东seo快速排名
  • 网站框架是什么seo关键词优化排名哪家好
  • 深圳靠谱网站建设公司app优化排名
  • 自己做网站买东西win10优化大师好用吗
  • 三水网站制作杭州优化公司在线留言
  • 做百科网站学大教育培训机构怎么样
  • 青岛做网站优化公司产品营销推广策略
  • 网站做微信接口吗今日热点新闻事件2022
  • 呼和浩特市网站建设湘潭关键词优化服务
  • 重庆室内设计学校长沙seo免费诊断
  • 电商网站建设渠道软文代写费用
  • 建站平台隐藏技术支持河南郑州网站推广优化外包
  • 网站展示型推广中国经济网人事
  • 企业网站建设讲解医疗器械龙头股
  • 明会红网站百度网盘在线登录
  • 营销策划公司靠谱吗沈阳关键词优化费用
  • 免费网站建设免代码如何开发网站平台
  • 懂做游戏钓鱼网站的搜狗搜索引擎优化论文
  • 江门网站建设方案策划亚马逊跨境电商个人开店
  • 微网站自己怎么做的长尾关键词是什么
  • 内部网站建设_百度云搜索引擎入口盘搜搜