xref: /qemu/docs/system/arm/emulation.rst (revision 14a164030ada5c5d6f346e152521cb878b142b2a)
1a0a6754bSAlex Bennée.. _Arm Emulation:
2a0a6754bSAlex Bennée
3741292faSPeter MaydellA-profile CPU architecture support
4741292faSPeter Maydell==================================
5741292faSPeter Maydell
6741292faSPeter MaydellQEMU's TCG emulation includes support for the Armv5, Armv6, Armv7 and
7741292faSPeter MaydellArmv8 versions of the A-profile architecture. It also has support for
8741292faSPeter Maydellthe following architecture extensions:
9741292faSPeter Maydell
10741292faSPeter Maydell- FEAT_AA32BF16 (AArch32 BFloat16 instructions)
11741292faSPeter Maydell- FEAT_AA32HPD (AArch32 hierarchical permission disables)
12741292faSPeter Maydell- FEAT_AA32I8MM (AArch32 Int8 matrix multiplication instructions)
13741292faSPeter Maydell- FEAT_AES (AESD and AESE instructions)
1475d08a40SPeter Maydell- FEAT_BBM at level 2 (Translation table break-before-make levels)
15741292faSPeter Maydell- FEAT_BF16 (AArch64 BFloat16 instructions)
16741292faSPeter Maydell- FEAT_BTI (Branch Target Identification)
179e771a2fSAlex Bennée- FEAT_CRC32 (CRC32 instructions)
1874b17e16SRichard Henderson- FEAT_CSV2 (Cache speculation variant 2)
197cb1e618SRichard Henderson- FEAT_CSV2_1p1 (Cache speculation variant 2, version 1.1)
207cb1e618SRichard Henderson- FEAT_CSV2_1p2 (Cache speculation variant 2, version 1.2)
217cb1e618SRichard Henderson- FEAT_CSV2_2 (Cache speculation variant 2, version 2)
223082b86bSRichard Henderson- FEAT_CSV3 (Cache speculation variant 3)
236d965019SRichard Henderson- FEAT_DGH (Data gathering hint)
24741292faSPeter Maydell- FEAT_DIT (Data Independent Timing instructions)
25741292faSPeter Maydell- FEAT_DPB (DC CVAP instruction)
26033a4f15SRichard Henderson- FEAT_Debugv8p2 (Debug changes for v8.2)
278fc756b6SRichard Henderson- FEAT_Debugv8p4 (Debug changes for v8.4)
28741292faSPeter Maydell- FEAT_DotProd (Advanced SIMD dot product instructions)
297ac61020SPeter Maydell- FEAT_DoubleFault (Double Fault Extension)
30e4c93e44SPeter Maydell- FEAT_E0PD (Preventing EL0 access to halves of address maps)
31c10a9a51SPeter Maydell- FEAT_ECV (Enhanced Counter Virtualization)
32c3ccd566SAaron Lindsay- FEAT_EPAC (Enhanced pointer authentication)
333fe72e21SPeter Maydell- FEAT_ETS (Enhanced Translation Synchronization)
3441654f12SPeter Maydell- FEAT_EVT (Enhanced Virtualization Traps)
35741292faSPeter Maydell- FEAT_FCMA (Floating-point complex number instructions)
36bb18151dSPeter Maydell- FEAT_FGT (Fine-Grained Traps)
37741292faSPeter Maydell- FEAT_FHM (Floating-point half-precision multiplication instructions)
38741292faSPeter Maydell- FEAT_FP16 (Half-precision floating-point data processing)
398a69a423SAaron Lindsay- FEAT_FPAC (Faulting on AUT* instructions)
408a69a423SAaron Lindsay- FEAT_FPACCOMBINE (Faulting on combined pointer authentication instructions)
41741292faSPeter Maydell- FEAT_FRINTTS (Floating-point to integer instructions)
42741292faSPeter Maydell- FEAT_FlagM (Flag manipulation instructions v2)
43741292faSPeter Maydell- FEAT_FlagM2 (Enhancements to flag manipulation instructions)
44915f6284SPeter Maydell- FEAT_GTG (Guest translation granule size)
4571943a1eSRichard Henderson- FEAT_HAFDBS (Hardware management of the access flag and dirty bit state)
463039b090SPeter Maydell- FEAT_HBC (Hinted conditional branches)
4795d0f1d8SPeter Maydell- FEAT_HCX (Support for the HCRX_EL2 register)
48741292faSPeter Maydell- FEAT_HPDS (Hierarchical permission disables)
49df9a3917SRichard Henderson- FEAT_HPDS2 (Translation table page-based hardware attributes)
503d80bbf1SPeter Maydell- FEAT_HPMN0 (Setting of MDCR_EL2.HPMN to zero)
51741292faSPeter Maydell- FEAT_I8MM (AArch64 Int8 matrix multiplication instructions)
5275662f36SPeter Maydell- FEAT_IDST (ID space trap handling)
53880cd10eSRichard Henderson- FEAT_IESB (Implicit error synchronization event)
54741292faSPeter Maydell- FEAT_JSCVT (JavaScript conversion instructions)
55741292faSPeter Maydell- FEAT_LOR (Limited ordering regions)
567a928f43SRichard Henderson- FEAT_LPA (Large Physical Address space)
57ef56c242SRichard Henderson- FEAT_LPA2 (Large Physical and virtual Address space v2)
58741292faSPeter Maydell- FEAT_LRCPC (Load-acquire RCpc instructions)
59741292faSPeter Maydell- FEAT_LRCPC2 (Load-acquire RCpc instructions v2)
60741292faSPeter Maydell- FEAT_LSE (Large System Extensions)
6159b6b42cSRichard Henderson- FEAT_LSE2 (Large System Extensions v2)
620af312b6SRichard Henderson- FEAT_LVA (Large Virtual Address space)
63706a92fbSPeter Maydell- FEAT_MOPS (Standardization of memory operations)
64741292faSPeter Maydell- FEAT_MTE (Memory Tagging Extension)
65741292faSPeter Maydell- FEAT_MTE2 (Memory Tagging Extension)
6686f0d4c7SPeter Collingbourne- FEAT_MTE3 (MTE Asymmetric Fault Handling)
67*14a16403SJinjie Ruan- FEAT_NMI (Non-maskable Interrupt)
681274a47fSPeter Maydell- FEAT_NV (Nested Virtualization)
69e2862554SPeter Maydell- FEAT_NV2 (Enhanced nested virtualization support)
70399e5e71SRichard Henderson- FEAT_PACIMP (Pointer authentication - IMPLEMENTATION DEFINED algorithm)
71399e5e71SRichard Henderson- FEAT_PACQARMA3 (Pointer authentication - QARMA3 algorithm)
72399e5e71SRichard Henderson- FEAT_PACQARMA5 (Pointer authentication - QARMA5 algorithm)
73741292faSPeter Maydell- FEAT_PAN (Privileged access never)
74741292faSPeter Maydell- FEAT_PAN2 (AT S1E1R and AT S1E1W instruction variants affected by PSTATE.PAN)
75dd17143fSPeter Maydell- FEAT_PAN3 (Support for SCTLR_ELx.EPAN)
76741292faSPeter Maydell- FEAT_PAuth (Pointer authentication)
77eb12e929SMichael Tokarev- FEAT_PAuth2 (Enhancements to pointer authentication)
78741292faSPeter Maydell- FEAT_PMULL (PMULL, PMULL2 instructions)
79741292faSPeter Maydell- FEAT_PMUv3p1 (PMU Extensions v3.1)
80741292faSPeter Maydell- FEAT_PMUv3p4 (PMU Extensions v3.4)
81e31e0f56SPeter Maydell- FEAT_PMUv3p5 (PMU Extensions v3.5)
82e95c74c5SRichard Henderson- FEAT_RAS (Reliability, availability, and serviceability)
83d507bc3bSPeter Maydell- FEAT_RASv1p1 (RAS Extension v1.1)
84741292faSPeter Maydell- FEAT_RDM (Advanced SIMD rounding double multiply accumulate instructions)
8557223a4cSRichard Henderson- FEAT_RME (Realm Management Extension) (NB: support status in QEMU is experimental)
86741292faSPeter Maydell- FEAT_RNG (Random number generator)
87e04bf5a7SPeter Maydell- FEAT_S2FWB (Stage 2 forced Write-Back)
88741292faSPeter Maydell- FEAT_SB (Speculation Barrier)
89741292faSPeter Maydell- FEAT_SEL2 (Secure EL2)
90741292faSPeter Maydell- FEAT_SHA1 (SHA1 instructions)
91741292faSPeter Maydell- FEAT_SHA256 (SHA256 instructions)
92741292faSPeter Maydell- FEAT_SHA3 (Advanced SIMD SHA3 instructions)
93741292faSPeter Maydell- FEAT_SHA512 (Advanced SIMD SHA512 instructions)
94741292faSPeter Maydell- FEAT_SM3 (Advanced SIMD SM3 instructions)
95741292faSPeter Maydell- FEAT_SM4 (Advanced SIMD SM4 instructions)
9678cb9776SRichard Henderson- FEAT_SME (Scalable Matrix Extension)
9778cb9776SRichard Henderson- FEAT_SME_FA64 (Full A64 instruction set in Streaming SVE mode)
9878cb9776SRichard Henderson- FEAT_SME_F64F64 (Double-precision floating-point outer product instructions)
9978cb9776SRichard Henderson- FEAT_SME_I16I64 (16-bit to 64-bit integer widening outer product instructions)
100741292faSPeter Maydell- FEAT_SPECRES (Speculation restriction instructions)
101741292faSPeter Maydell- FEAT_SSBS (Speculative Store Bypass Safe)
1029cd0c0deSRichard Henderson- FEAT_TIDCP1 (EL0 use of IMPLEMENTATION DEFINED functionality)
103741292faSPeter Maydell- FEAT_TLBIOS (TLB invalidate instructions in Outer Shareable domain)
104741292faSPeter Maydell- FEAT_TLBIRANGE (TLB invalidate range instructions)
105741292faSPeter Maydell- FEAT_TTCNP (Translation table Common not private translations)
106f81c60c2SPeter Maydell- FEAT_TTL (Translation Table Level)
107741292faSPeter Maydell- FEAT_TTST (Small translation tables)
108741292faSPeter Maydell- FEAT_UAO (Unprivileged Access Override control)
109741292faSPeter Maydell- FEAT_VHE (Virtualization Host Extensions)
110741292faSPeter Maydell- FEAT_VMID16 (16-bit VMID)
111741292faSPeter Maydell- FEAT_XNX (Translation table stage 2 Unprivileged Execute-never)
112741292faSPeter Maydell- SVE (The Scalable Vector Extension)
113741292faSPeter Maydell- SVE2 (The Scalable Vector Extension v2)
114741292faSPeter Maydell
115741292faSPeter MaydellFor information on the specifics of these extensions, please refer
116741292faSPeter Maydellto the `Armv8-A Arm Architecture Reference Manual
117741292faSPeter Maydell<https://developer.arm.com/documentation/ddi0487/latest>`_.
118741292faSPeter Maydell
119741292faSPeter MaydellWhen a specific named CPU is being emulated, only those features which
120741292faSPeter Maydellare present in hardware for that CPU are emulated. (If a feature is
121741292faSPeter Maydellnot in the list above then it is not supported, even if the real
122741292faSPeter Maydellhardware should have it.) The ``max`` CPU enables all features.
123741292faSPeter Maydell
124741292faSPeter MaydellR-profile CPU architecture support
125741292faSPeter Maydell==================================
126741292faSPeter Maydell
127741292faSPeter MaydellQEMU's TCG emulation support for R-profile CPUs is currently limited.
128741292faSPeter MaydellWe emulate only the Cortex-R5 and Cortex-R5F CPUs.
129741292faSPeter Maydell
130741292faSPeter MaydellM-profile CPU architecture support
131741292faSPeter Maydell==================================
132741292faSPeter Maydell
133741292faSPeter MaydellQEMU's TCG emulation includes support for Armv6-M, Armv7-M, Armv8-M, and
134741292faSPeter MaydellArmv8.1-M versions of the M-profile architucture.  It also has support
135741292faSPeter Maydellfor the following architecture extensions:
136741292faSPeter Maydell
137741292faSPeter Maydell- FP (Floating-point Extension)
138741292faSPeter Maydell- FPCXT (FPCXT access instructions)
139741292faSPeter Maydell- HP (Half-precision floating-point instructions)
140741292faSPeter Maydell- LOB (Low Overhead loops and Branch future)
141741292faSPeter Maydell- M (Main Extension)
142741292faSPeter Maydell- MPU (Memory Protection Unit Extension)
143741292faSPeter Maydell- PXN (Privileged Execute Never)
144741292faSPeter Maydell- RAS (Reliability, Serviceability and Availability): "minimum RAS Extension" only
145741292faSPeter Maydell- S (Security Extension)
146741292faSPeter Maydell- ST (System Timer Extension)
147741292faSPeter Maydell
148741292faSPeter MaydellFor information on the specifics of these extensions, please refer
149741292faSPeter Maydellto the `Armv8-M Arm Architecture Reference Manual
150741292faSPeter Maydell<https://developer.arm.com/documentation/ddi0553/latest>`_.
151741292faSPeter Maydell
152741292faSPeter MaydellWhen a specific named CPU is being emulated, only those features which
153741292faSPeter Maydellare present in hardware for that CPU are emulated. (If a feature is
154741292faSPeter Maydellnot in the list above then it is not supported, even if the real
155741292faSPeter Maydellhardware should have it.) There is no equivalent of the ``max`` CPU for
156741292faSPeter MaydellM-profile.
157