AArch64
This article may be too technical for most readers to understand.(June 2020) |
AArch64 or ARM64 is the 64-bit extension of the ARM architecture.
ARMv8-A
Announced in October 2011,[1] ARMv8-A (often called just ARMv8, although there is also a 32-bit ARMv8-R) represents a fundamental change to the ARM architecture. It adds an optional 64-bit architecture (e.g. Cortex-A32 is a 32-bit ARMv8-A CPU[2] while most ARMv8-A CPUs support 64-bit, unlike all ARMv8-R), named "AArch64", and the associated new "A64" instruction set. AArch64 provides user-space compatibility with ARMv7-A, the 32-bit architecture, therein referred to as "AArch32" and the old 32-bit instruction set, now named "A32". The Thumb instruction set is referred to as "T32" and has no 64-bit counterpart. ARMv8-A allows 32-bit applications to be executed in a 64-bit OS, and a 32-bit OS to be under the control of a 64-bit hypervisor.[3] ARM announced their Cortex-A53 and Cortex-A57 cores on 30 October 2012.[4] Apple was the first to release an ARMv8-A compatible core (Apple A7) in a consumer product (iPhone 5S). AppliedMicro, using an FPGA, was the first to demo ARMv8-A.[5] The first ARMv8-A SoC from Samsung is the Exynos 5433 used in the Galaxy Note 4, which features two clusters of four Cortex-A57 and Cortex-A53 cores in a big.LITTLE configuration; but it will run only in AArch32 mode.[6]
To both AArch32 and AArch64, ARMv8-A makes VFPv3/v4 and advanced SIMD (Neon) standard. It also adds cryptography instructions supporting AES, SHA-1/SHA-256 and finite field arithmetic.[7]
AArch64 features
- New instruction set, A64
- Has 31 general-purpose 64-bit registers.
- Has dedicated zero or stack pointer (SP) register (depending on instruction).
- The program counter (PC) is no longer directly accessible as a register.
- Instructions are still 32 bits long and mostly the same as A32 (with LDM/STM instructions and most conditional execution dropped).
- Has paired loads/stores (in place of LDM/STM).
- No predication for most instructions (except branches).
- Most instructions can take 32-bit or 64-bit arguments.
- Addresses assumed to be 64-bit.
- Advanced SIMD (Neon) enhanced
- Has 32 × 128-bit registers (up from 16), also accessible via VFPv4.
- Supports double-precision floating-point format.
- Fully IEEE 754 compliant.
- AES encrypt/decrypt and SHA-1/SHA-2 hashing instructions also use these registers.
- A new exception system
- Fewer banked registers and modes.
- Memory translation from 48-bit virtual addresses based on the existing Large Physical Address Extension (LPAE), which was designed to be easily extended to 64-bit.
AArch64 was introduced in ARMv8-A and is included in subsequent versions of ARMV8-A. AArch64 is not included in ARMv8-R or ARMv8-M, because they are both 32-bit architectures.
ARMv8.1-A
In December 2014, ARMv8.1-A,[8] an update with "incremental benefits over v8.0", was announced. The enhancements fell into two categories: changes to the instruction set, and changes to the exception model and memory translation.
Instruction set enhancements included the following:
- A set of AArch64 atomic read-write instructions.
- Additions to the Advanced SIMD instruction set for both AArch32 and AArch64 to enable opportunities for some library optimizations:
- Signed Saturating Rounding Doubling Multiply Accumulate, Returning High Half.
- Signed Saturating Rounding Doubling Multiply Subtract, Returning High Half.
- The instructions are added in vector and scalar forms.
- A set of AArch64 load and store instructions that can provide memory access order that is limited to configurable address regions.
- The optional CRC instructions in v8.0 become a requirement in ARMv8.1.
Enhancements for the exception model and memory translation system included the following:
- A new Privileged Access Never (PAN) state bit provides control that prevents privileged access to user data unless explicitly enabled.
- An increased VMID range for virtualization; supports a larger number of virtual machines.
- Optional support for hardware update of the page table access flag, and the standardization of an optional, hardware updated, dirty bit mechanism.
- The Virtualization Host Extensions (VHE). These enhancements improve the performance of Type 2 hypervisors by reducing the software overhead associated when transitioning between the Host and Guest operating systems. The extensions allow the Host OS to execute at EL2, as opposed to EL1, without substantial modification.
- A mechanism to free up some translation table bits for operating system use, where the hardware support is not needed by the OS.
- Top byte ignore for memory tagging.[9]
ARMv8.2-A
In January 2016, ARMv8.2-A was announced.[10] Its enhancements fell into four categories:
- Optional half-precision floating-point data processing (half-precision was already supported, but not for processing, just as a storage format.)
- Memory model enhancements
- Introduction of Reliability, Availability and Serviceability Extension (RAS Extension)
- Introduction of statistical profiling
Scalable Vector Extension (SVE)
The Scalable Vector Extension (SVE) is a new extension for ARMv8 allowing "implementation choices for vector lengths that scale from 128 to 2048 bits";[11] a complementary extension that does not replace Neon. A 512-bit variant has already been implemented on the Fugaku supercomputer, based on the Fujitsu A64FX ARM processor which supports that SVE variant. It aims to be the world's highest-performing supercomputer with "the goal of beginning full operations around 2021."[12] SVE is "an optional extension to the ARMv8.2-A architecture and newer",[13] and is supported by the GCC 8 compiler (C intrinsics and automatic vectorization). As of September 2019, LLVM and clang support is available in not yet up-streamed repositories[clarification needed].
ARMv8.3-A
In October 2016, ARMv8.3-A was announced. Its enhancements fell into six categories:[14]
- Pointer authentication[15] (AArch64 only); mandatory extension (based on a new block cipher, QARMA[16]) to the architecture (compilers need to exploit the security feature, but as the instructions are in NOP space, they are backwards compatible albeit providing no extra security on older chips).
- Nested virtualization (AArch64 only)
- Advanced SIMD complex number support (AArch64 and AArch32); e.g. rotations by multiples of 90 degrees.
- New FJCVTZS (Floating-point Javascript Convert to Signed fixed-point, rounding toward Zero) instruction.[17]
- A change to the memory consistency model (AArch64 only); to support the (non-default) weaker RCpc (Release Consistent processor consistent) model of C++11/C11 (the default C++11/C11 consistency model was already supported in previous ARMv8).
- ID mechanism support for larger system-visible caches (AArch64 and AArch32)
ARMv8.3-A architecture is now supported by (at least) the GCC 7 compiler.[18]
ARMv8.4-A
In November 2017, ARMv8.4-A was announced. Its enhancements fell into these categories:[19][20][21]
- "SHA3 / SHA512 / SM3 / SM4 crypto extensions"
- Improved virtualization support
- Memory Partitioning and Monitoring (MPAM) capabilities
- A new Secure EL2 state and Activity Monitors
- Signed and unsigned integer dot product (SDOT and UDOT) instructions.
ARMv8.5-A
In September 2018 ARMv8.5-A was announced. Its enhancements fell into these categories:[22][23]
- Memory Tagging Extension (MTE),
- Branch Target Indicators (BTI) to reduce "the ability of an attacker to execute arbitrary code"
- Random Number Generator instructions – "providing Deterministic and True Random Numbers conforming to various National and International Standards."
On 2 August 2019, Google announced Android would adopt Memory Tagging Extension (MTE).[24]
ARMv8.6-A
In September 2019, ARMv8.6-A was announced. It adds:[25]
- General Matrix Multiply (GEMM)
- Bfloat16 format support
- SIMD matrix manipulation instructions, BFDOT, BFMMLA, BFMLAL and BFCVT
- enhancements for virtualization, system management and security
For example, Fine grained traps, Wait-for-Event (WFE) instructions, EnhancedPAC2 and FPAC. The Bfloat16 extensions for SVE and Neon are mainly for deep learning use.[26]
Future ARM architecture features
In May 2019, ARM announced their upcoming Scalable Vector Extension 2 (SVE2) and Transactional Memory Extension (TME).[27]
Scalable Vector Extension 2 (SVE2)
SVE2 builds on SVE's scalable vectorization for increased fine-grain Data Level Parallelism (DLP), to allow more work done per instruction. SVE2 aims to bring these benefits to a wider range of software including DSP and multimedia SIMD code that currently use Neon.[27] The LLVM/Clang 9.0 and GCC 10.0 development codes were updated to support SVE2.[28]
Transactional Memory Extension (TME)
Following the x86 extensions, TME brings support for Hardware Transactional Memory (HTM) and Transactional Lock Elision (TLE). TME aims to bring scalable concurrency to increase coarse-grained Thread Level Parallelism (TLP), to allow more work done per thread.[27] The LLVM/Clang 9.0 and GCC 10.0 development codes were updated to support TME.[28]
References
- ^ "ARM Discloses Technical Details Of The Next Version Of The ARM Architecture" (Press release). Arm Holdings. 27 October 2011. Archived from the original on 1 January 2019. Retrieved 20 September 2013.
- ^ "Cortex-A32 Processor – ARM". Retrieved 18 December 2016.
- ^ Grisenthwaite, Richard (2011). "ARMv8-A Technology Preview" (PDF). Retrieved 31 October 2011.
- ^ "ARM Launches Cortex-A50 Series, the World's Most Energy-Efficient 64-bit Processors" (Press release). Arm Holdings. Retrieved 31 October 2012.
- ^ "AppliedMicro Showcases World's First 64-bit ARM v8 Core" (Press release). AppliedMicro. 28 October 2011. Retrieved 11 February 2014.
- ^ "Samsung's Exynos 5433 is an A57/A53 ARM SoC". AnandTech. Retrieved 17 September 2014.
- ^ "ARM Cortex-A53 MPCore Processor Technical Reference Manual: Cryptography Extension". ARM. Retrieved 11 September 2016.
- ^ Brash, David (2 December 2014). "The ARMv8-A architecture and its ongoing development". Retrieved 23 January 2015.
- ^ "TBI".
{{cite web}}
: CS1 maint: url-status (link) - ^ Brash, David (5 January 2016). "ARMv8-A architecture evolution". Retrieved 7 June 2016.
- ^ "The scalable vector extension sve for the Armv8 a architecture". Arm Community. Retrieved 8 July 2018.
SVE is a complementary extension that does not replace NEON, and was developed specifically for vectorization of HPC scientific workloads.
- ^ "Fujitsu Completes Post-K Supercomputer CPU Prototype, Begins Functionality Trials – Fujitsu Global". www.fujitsu.com (Press release). Retrieved 8 July 2018.
- ^ "GCC 8 Release Series – Changes, New Features, and Fixes – GNU Project – Free Software Foundation (FSF)". gcc.gnu.org. Retrieved 9 July 2018.
- ^ David Brash (26 October 2016). "ARMv8-A architecture – 2016 additions".
- ^ "[Ping~,AArch64] Add commandline support for -march=armv8.3-a".
pointer authentication extension is defined to be mandatory extension on ARMv8.3-A and is not optional
- ^ "Qualcomm releases whitepaper detailing pointer authentication on ARMv8.3".
- ^ "A64 Floating-point Instructions: FJCVTZS". arm.com. Retrieved 11 July 2019.
- ^ "GCC 7 Release Series – Changes, New Features, and Fixes".
The ARMv8.3-A architecture is now supported. It can be used by specifying the -march=armv8.3-a option. [..] The option -msign-return-address= is supported to enable return address protection using ARMv8.3-A Pointer Authentication Extensions.
- ^ "Introducing 2017's extensions to the Arm Architecture". community.arm.com. Retrieved 15 June 2019.
- ^ "Exploring dot product machine learning". community.arm.com. Retrieved 15 June 2019.
- ^ "ARM Preps ARMv8.4-A Support For GCC Compiler – Phoronix". www.phoronix.com. Retrieved 14 January 2018.
- ^ "Arm Architecture Armv8.5-A Announcement – Processors blog – Processors – Arm Community". community.arm.com. Retrieved 26 April 2019.
- ^ Ltd, Arm. "Arm Architecture Reference Manual Armv8, for Armv8-A architecture profile". ARM Developer. Retrieved 6 August 2019.
- ^ "Adopting the Arm Memory Tagging Extension in Android". Google Online Security Blog. Retrieved 6 August 2019.
- ^ "Arm A profile architecture update 2019". community.arm.com. Retrieved 26 September 2019.
- ^ "BFloat16 extensions for Armv8-A". community.arm.com. Retrieved 30 August 2019.
- ^ a b c "Arm releases SVE2 and TME for A-profile architecture – Processors blog – Processors – Arm Community". community.arm.com. Retrieved 25 May 2019.
- ^ a b "Arm SVE2 Support Aligning For GCC 10, LLVM Clang 9.0 – Phoronix". www.phoronix.com. Retrieved 26 May 2019.