xref: /qemu/docs/system/arm/emulation.rst (revision 915f62844cf62e428c7c178149b5ff1cbe129b07)
1741292faSPeter MaydellA-profile CPU architecture support
2741292faSPeter Maydell==================================
3741292faSPeter Maydell
4741292faSPeter MaydellQEMU's TCG emulation includes support for the Armv5, Armv6, Armv7 and
5741292faSPeter MaydellArmv8 versions of the A-profile architecture. It also has support for
6741292faSPeter Maydellthe following architecture extensions:
7741292faSPeter Maydell
8741292faSPeter Maydell- FEAT_AA32BF16 (AArch32 BFloat16 instructions)
9741292faSPeter Maydell- FEAT_AA32HPD (AArch32 hierarchical permission disables)
10741292faSPeter Maydell- FEAT_AA32I8MM (AArch32 Int8 matrix multiplication instructions)
11741292faSPeter Maydell- FEAT_AES (AESD and AESE instructions)
1275d08a40SPeter Maydell- FEAT_BBM at level 2 (Translation table break-before-make levels)
13741292faSPeter Maydell- FEAT_BF16 (AArch64 BFloat16 instructions)
14741292faSPeter Maydell- FEAT_BTI (Branch Target Identification)
1574b17e16SRichard Henderson- FEAT_CSV2 (Cache speculation variant 2)
167cb1e618SRichard Henderson- FEAT_CSV2_1p1 (Cache speculation variant 2, version 1.1)
177cb1e618SRichard Henderson- FEAT_CSV2_1p2 (Cache speculation variant 2, version 1.2)
187cb1e618SRichard Henderson- FEAT_CSV2_2 (Cache speculation variant 2, version 2)
193082b86bSRichard Henderson- FEAT_CSV3 (Cache speculation variant 3)
206d965019SRichard Henderson- FEAT_DGH (Data gathering hint)
21741292faSPeter Maydell- FEAT_DIT (Data Independent Timing instructions)
22741292faSPeter Maydell- FEAT_DPB (DC CVAP instruction)
23033a4f15SRichard Henderson- FEAT_Debugv8p2 (Debug changes for v8.2)
248fc756b6SRichard Henderson- FEAT_Debugv8p4 (Debug changes for v8.4)
25741292faSPeter Maydell- FEAT_DotProd (Advanced SIMD dot product instructions)
267ac61020SPeter Maydell- FEAT_DoubleFault (Double Fault Extension)
273fe72e21SPeter Maydell- FEAT_ETS (Enhanced Translation Synchronization)
28741292faSPeter Maydell- FEAT_FCMA (Floating-point complex number instructions)
29741292faSPeter Maydell- FEAT_FHM (Floating-point half-precision multiplication instructions)
30741292faSPeter Maydell- FEAT_FP16 (Half-precision floating-point data processing)
31741292faSPeter Maydell- FEAT_FRINTTS (Floating-point to integer instructions)
32741292faSPeter Maydell- FEAT_FlagM (Flag manipulation instructions v2)
33741292faSPeter Maydell- FEAT_FlagM2 (Enhancements to flag manipulation instructions)
34*915f6284SPeter Maydell- FEAT_GTG (Guest translation granule size)
3595d0f1d8SPeter Maydell- FEAT_HCX (Support for the HCRX_EL2 register)
36741292faSPeter Maydell- FEAT_HPDS (Hierarchical permission disables)
37741292faSPeter Maydell- FEAT_I8MM (AArch64 Int8 matrix multiplication instructions)
3875662f36SPeter Maydell- FEAT_IDST (ID space trap handling)
39880cd10eSRichard Henderson- FEAT_IESB (Implicit error synchronization event)
40741292faSPeter Maydell- FEAT_JSCVT (JavaScript conversion instructions)
41741292faSPeter Maydell- FEAT_LOR (Limited ordering regions)
427a928f43SRichard Henderson- FEAT_LPA (Large Physical Address space)
43ef56c242SRichard Henderson- FEAT_LPA2 (Large Physical and virtual Address space v2)
44741292faSPeter Maydell- FEAT_LRCPC (Load-acquire RCpc instructions)
45741292faSPeter Maydell- FEAT_LRCPC2 (Load-acquire RCpc instructions v2)
46741292faSPeter Maydell- FEAT_LSE (Large System Extensions)
470af312b6SRichard Henderson- FEAT_LVA (Large Virtual Address space)
48741292faSPeter Maydell- FEAT_MTE (Memory Tagging Extension)
49741292faSPeter Maydell- FEAT_MTE2 (Memory Tagging Extension)
5086f0d4c7SPeter Collingbourne- FEAT_MTE3 (MTE Asymmetric Fault Handling)
51741292faSPeter Maydell- FEAT_PAN (Privileged access never)
52741292faSPeter Maydell- FEAT_PAN2 (AT S1E1R and AT S1E1W instruction variants affected by PSTATE.PAN)
53741292faSPeter Maydell- FEAT_PAuth (Pointer authentication)
54741292faSPeter Maydell- FEAT_PMULL (PMULL, PMULL2 instructions)
55741292faSPeter Maydell- FEAT_PMUv3p1 (PMU Extensions v3.1)
56741292faSPeter Maydell- FEAT_PMUv3p4 (PMU Extensions v3.4)
57e31e0f56SPeter Maydell- FEAT_PMUv3p5 (PMU Extensions v3.5)
58e95c74c5SRichard Henderson- FEAT_RAS (Reliability, availability, and serviceability)
59d507bc3bSPeter Maydell- FEAT_RASv1p1 (RAS Extension v1.1)
60741292faSPeter Maydell- FEAT_RDM (Advanced SIMD rounding double multiply accumulate instructions)
61741292faSPeter Maydell- FEAT_RNG (Random number generator)
62e04bf5a7SPeter Maydell- FEAT_S2FWB (Stage 2 forced Write-Back)
63741292faSPeter Maydell- FEAT_SB (Speculation Barrier)
64741292faSPeter Maydell- FEAT_SEL2 (Secure EL2)
65741292faSPeter Maydell- FEAT_SHA1 (SHA1 instructions)
66741292faSPeter Maydell- FEAT_SHA256 (SHA256 instructions)
67741292faSPeter Maydell- FEAT_SHA3 (Advanced SIMD SHA3 instructions)
68741292faSPeter Maydell- FEAT_SHA512 (Advanced SIMD SHA512 instructions)
69741292faSPeter Maydell- FEAT_SM3 (Advanced SIMD SM3 instructions)
70741292faSPeter Maydell- FEAT_SM4 (Advanced SIMD SM4 instructions)
7178cb9776SRichard Henderson- FEAT_SME (Scalable Matrix Extension)
7278cb9776SRichard Henderson- FEAT_SME_FA64 (Full A64 instruction set in Streaming SVE mode)
7378cb9776SRichard Henderson- FEAT_SME_F64F64 (Double-precision floating-point outer product instructions)
7478cb9776SRichard Henderson- FEAT_SME_I16I64 (16-bit to 64-bit integer widening outer product instructions)
75741292faSPeter Maydell- FEAT_SPECRES (Speculation restriction instructions)
76741292faSPeter Maydell- FEAT_SSBS (Speculative Store Bypass Safe)
77741292faSPeter Maydell- FEAT_TLBIOS (TLB invalidate instructions in Outer Shareable domain)
78741292faSPeter Maydell- FEAT_TLBIRANGE (TLB invalidate range instructions)
79741292faSPeter Maydell- FEAT_TTCNP (Translation table Common not private translations)
80f81c60c2SPeter Maydell- FEAT_TTL (Translation Table Level)
81741292faSPeter Maydell- FEAT_TTST (Small translation tables)
82741292faSPeter Maydell- FEAT_UAO (Unprivileged Access Override control)
83741292faSPeter Maydell- FEAT_VHE (Virtualization Host Extensions)
84741292faSPeter Maydell- FEAT_VMID16 (16-bit VMID)
85741292faSPeter Maydell- FEAT_XNX (Translation table stage 2 Unprivileged Execute-never)
86741292faSPeter Maydell- SVE (The Scalable Vector Extension)
87741292faSPeter Maydell- SVE2 (The Scalable Vector Extension v2)
88741292faSPeter Maydell
89741292faSPeter MaydellFor information on the specifics of these extensions, please refer
90741292faSPeter Maydellto the `Armv8-A Arm Architecture Reference Manual
91741292faSPeter Maydell<https://developer.arm.com/documentation/ddi0487/latest>`_.
92741292faSPeter Maydell
93741292faSPeter MaydellWhen a specific named CPU is being emulated, only those features which
94741292faSPeter Maydellare present in hardware for that CPU are emulated. (If a feature is
95741292faSPeter Maydellnot in the list above then it is not supported, even if the real
96741292faSPeter Maydellhardware should have it.) The ``max`` CPU enables all features.
97741292faSPeter Maydell
98741292faSPeter MaydellR-profile CPU architecture support
99741292faSPeter Maydell==================================
100741292faSPeter Maydell
101741292faSPeter MaydellQEMU's TCG emulation support for R-profile CPUs is currently limited.
102741292faSPeter MaydellWe emulate only the Cortex-R5 and Cortex-R5F CPUs.
103741292faSPeter Maydell
104741292faSPeter MaydellM-profile CPU architecture support
105741292faSPeter Maydell==================================
106741292faSPeter Maydell
107741292faSPeter MaydellQEMU's TCG emulation includes support for Armv6-M, Armv7-M, Armv8-M, and
108741292faSPeter MaydellArmv8.1-M versions of the M-profile architucture.  It also has support
109741292faSPeter Maydellfor the following architecture extensions:
110741292faSPeter Maydell
111741292faSPeter Maydell- FP (Floating-point Extension)
112741292faSPeter Maydell- FPCXT (FPCXT access instructions)
113741292faSPeter Maydell- HP (Half-precision floating-point instructions)
114741292faSPeter Maydell- LOB (Low Overhead loops and Branch future)
115741292faSPeter Maydell- M (Main Extension)
116741292faSPeter Maydell- MPU (Memory Protection Unit Extension)
117741292faSPeter Maydell- PXN (Privileged Execute Never)
118741292faSPeter Maydell- RAS (Reliability, Serviceability and Availability): "minimum RAS Extension" only
119741292faSPeter Maydell- S (Security Extension)
120741292faSPeter Maydell- ST (System Timer Extension)
121741292faSPeter Maydell
122741292faSPeter MaydellFor information on the specifics of these extensions, please refer
123741292faSPeter Maydellto the `Armv8-M Arm Architecture Reference Manual
124741292faSPeter Maydell<https://developer.arm.com/documentation/ddi0553/latest>`_.
125741292faSPeter Maydell
126741292faSPeter MaydellWhen a specific named CPU is being emulated, only those features which
127741292faSPeter Maydellare present in hardware for that CPU are emulated. (If a feature is
128741292faSPeter Maydellnot in the list above then it is not supported, even if the real
129741292faSPeter Maydellhardware should have it.) There is no equivalent of the ``max`` CPU for
130741292faSPeter MaydellM-profile.
131