ARMv8-A architecture overview

从今天起,正式学习ARMv8-A架构的知识,其中会涉及到ARMv7-A的一些知识,用来和ARMv8-A做对比使用。

 

学习过程中使用的文档:

首先来看下ARM架构演进的一个过程

从上面的图上我们可以得出以下几个结论:

  • ARM架构的演变过程是从ARMv4, ARMv5, ARMv6, ARMv7, ARMv8-A
  • 其中芯片的命名从ARM11开始使用新的命名规范Cortex,比如现在最新的高通SM865使用的是ARMv8-A架构,Cortex-A77的core
  • ARMv4到ARMv7都是只支持32位,从ARMv8-A开始支持64位,就是我们常说的AArch64。同时ARMv8也为了兼容ARMv7的应用,也支持32位
  • 虚拟化(Virtualization)也是在ARMv7后面开始引入,在ARMv8-A已经开始全面支持
  • TrustZone技术在ARMv7和ARMv8已经大范围使用

那ARMv8-A都包含了那些模块呢? 我们已Cortex-A57举例

主要涉及的模块有:

  • ARM CoreSight 技术,用于debug使用
  • Generic Interrupt Controller(GIC)中断控制器
  • Memory Protection Unit(MMU)MMU用于将虚拟地址转化为物理地址
  • 每个Core中都有一个L1 指令和数据Cache,一般每四个core会在一个Cluster中的
  • 存在一个L2 cache
  • 多个core可能通过Coherent Bus通信
     

我们再来看一个多个Cluster的设计图

可以看到一个Cluster中每个core都有一个L1 Cache,一个Cluster存在一个L2cache用于多个core之间共享数据。而多个Cluster通过AMB Coherent Bus总线沟通交流。

 

ARMv8-A相对于ARMv7架构都有啥区别呢:

  • 在ARMv7架构下只能访问最大4GB的地址空间,而在ARMv8-A可以访问更大的地址空间。
  • ARMv7只支持4KB的page,在ARMv8-A下可以支持多种页类型(4K,16K, 64K),地址范围【32, 48】最大48位
  • 所以ARMv8-A架构下下应用程序可以访问更大的虚拟地址空间
  • ARMv8-A首次引入了Exception Level的概念,在ARMv7下使用的是PL0, PL1, PL2。 而在ARMv8-A下使用的是EL0-EL3
  • ARMv8-A增加了通用寄存器的数量,可以减少函数栈的大小。ARMv8-A下使用了30个通用寄存器,ARMv7下只有15个通用寄存器
  • ARMv8-A增加了TLB的大小,减少TLB MISS的概率
  • ARMv8-A架构完全支持ARMv7架构下的应用程序
  • 等等等

下面的几节文章从以下几个模块分析

  • ARMv8-A下通用寄存器和ARMv7通用寄存器做对比
  • ARMv8-A新引入的Exception Level
  • ARMv8下的异常
  • ARMv8下Memory,MMU, LTB
  • ARMv8下GIC,中断

 

我的博客即将同步至腾讯云+社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan?invite_code=35qnbn3ijyasw

 

 

  • 0
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This manual describes the ARM® architecture v8, ARMv8. The architecture describes the operation of an ARMv8-A Processing element (PE), and this manual includes descriptions of: • The two Execution states, AArch64 and AArch32. • The instruction sets: — In AArch32 state, the A32 and T32 instruction sets, that are compatible with earlier versions of the ARM architecture. — In AArch64 state, the A64 instruction set. • The states that determine how a PE operates, including the current Exception level and Security state, and in AArch32 state the PE mode. • The Exception model. • The interprocessing model, that supports transitioning between AArch64 state and AArch32 state. • The memory model, that defines memory ordering and memory management. This manual covers a single architecture profile, ARMv8-A, that defines a Virtual Memory System Architecture (VMSA). • The programmers’ model, and its interfaces to System registers that control most PE and memory system features, and provide status information. • The Advanced SIMD and floating-point instructions, that provide high-performance: — Single-precision and double-precision floating-point operations. — Conversions between double-precision, single-precision, and half-precision floating-point values. — Integer, single-precision floating-point, and in A64, double-precision vector operations in all instruction sets. — Double-precision floating-point vector operations in the A64 instruction set. • The security model, that provides two security states to support secure applications. • The virtualization model, that support the virtualization of Non-secure operation. • The Debug architecture, that provides software access to debug features.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值