xref: /openbmc/qemu/docs/system/arm/emulation.rst (revision 8fc756b6be0d0de777b2092d324907ced7365543)
1A-profile CPU architecture support
2==================================
3
4QEMU's TCG emulation includes support for the Armv5, Armv6, Armv7 and
5Armv8 versions of the A-profile architecture. It also has support for
6the following architecture extensions:
7
8- FEAT_AA32BF16 (AArch32 BFloat16 instructions)
9- FEAT_AA32HPD (AArch32 hierarchical permission disables)
10- FEAT_AA32I8MM (AArch32 Int8 matrix multiplication instructions)
11- FEAT_AES (AESD and AESE instructions)
12- FEAT_BBM at level 2 (Translation table break-before-make levels)
13- FEAT_BF16 (AArch64 BFloat16 instructions)
14- FEAT_BTI (Branch Target Identification)
15- FEAT_DIT (Data Independent Timing instructions)
16- FEAT_DPB (DC CVAP instruction)
17- FEAT_Debugv8p2 (Debug changes for v8.2)
18- FEAT_Debugv8p4 (Debug changes for v8.4)
19- FEAT_DotProd (Advanced SIMD dot product instructions)
20- FEAT_FCMA (Floating-point complex number instructions)
21- FEAT_FHM (Floating-point half-precision multiplication instructions)
22- FEAT_FP16 (Half-precision floating-point data processing)
23- FEAT_FRINTTS (Floating-point to integer instructions)
24- FEAT_FlagM (Flag manipulation instructions v2)
25- FEAT_FlagM2 (Enhancements to flag manipulation instructions)
26- FEAT_HPDS (Hierarchical permission disables)
27- FEAT_I8MM (AArch64 Int8 matrix multiplication instructions)
28- FEAT_JSCVT (JavaScript conversion instructions)
29- FEAT_LOR (Limited ordering regions)
30- FEAT_LPA (Large Physical Address space)
31- FEAT_LPA2 (Large Physical and virtual Address space v2)
32- FEAT_LRCPC (Load-acquire RCpc instructions)
33- FEAT_LRCPC2 (Load-acquire RCpc instructions v2)
34- FEAT_LSE (Large System Extensions)
35- FEAT_LVA (Large Virtual Address space)
36- FEAT_MTE (Memory Tagging Extension)
37- FEAT_MTE2 (Memory Tagging Extension)
38- FEAT_MTE3 (MTE Asymmetric Fault Handling)
39- FEAT_PAN (Privileged access never)
40- FEAT_PAN2 (AT S1E1R and AT S1E1W instruction variants affected by PSTATE.PAN)
41- FEAT_PAuth (Pointer authentication)
42- FEAT_PMULL (PMULL, PMULL2 instructions)
43- FEAT_PMUv3p1 (PMU Extensions v3.1)
44- FEAT_PMUv3p4 (PMU Extensions v3.4)
45- FEAT_RDM (Advanced SIMD rounding double multiply accumulate instructions)
46- FEAT_RNG (Random number generator)
47- FEAT_SB (Speculation Barrier)
48- FEAT_SEL2 (Secure EL2)
49- FEAT_SHA1 (SHA1 instructions)
50- FEAT_SHA256 (SHA256 instructions)
51- FEAT_SHA3 (Advanced SIMD SHA3 instructions)
52- FEAT_SHA512 (Advanced SIMD SHA512 instructions)
53- FEAT_SM3 (Advanced SIMD SM3 instructions)
54- FEAT_SM4 (Advanced SIMD SM4 instructions)
55- FEAT_SPECRES (Speculation restriction instructions)
56- FEAT_SSBS (Speculative Store Bypass Safe)
57- FEAT_TLBIOS (TLB invalidate instructions in Outer Shareable domain)
58- FEAT_TLBIRANGE (TLB invalidate range instructions)
59- FEAT_TTCNP (Translation table Common not private translations)
60- FEAT_TTL (Translation Table Level)
61- FEAT_TTST (Small translation tables)
62- FEAT_UAO (Unprivileged Access Override control)
63- FEAT_VHE (Virtualization Host Extensions)
64- FEAT_VMID16 (16-bit VMID)
65- FEAT_XNX (Translation table stage 2 Unprivileged Execute-never)
66- SVE (The Scalable Vector Extension)
67- SVE2 (The Scalable Vector Extension v2)
68
69For information on the specifics of these extensions, please refer
70to the `Armv8-A Arm Architecture Reference Manual
71<https://developer.arm.com/documentation/ddi0487/latest>`_.
72
73When a specific named CPU is being emulated, only those features which
74are present in hardware for that CPU are emulated. (If a feature is
75not in the list above then it is not supported, even if the real
76hardware should have it.) The ``max`` CPU enables all features.
77
78R-profile CPU architecture support
79==================================
80
81QEMU's TCG emulation support for R-profile CPUs is currently limited.
82We emulate only the Cortex-R5 and Cortex-R5F CPUs.
83
84M-profile CPU architecture support
85==================================
86
87QEMU's TCG emulation includes support for Armv6-M, Armv7-M, Armv8-M, and
88Armv8.1-M versions of the M-profile architucture.  It also has support
89for the following architecture extensions:
90
91- FP (Floating-point Extension)
92- FPCXT (FPCXT access instructions)
93- HP (Half-precision floating-point instructions)
94- LOB (Low Overhead loops and Branch future)
95- M (Main Extension)
96- MPU (Memory Protection Unit Extension)
97- PXN (Privileged Execute Never)
98- RAS (Reliability, Serviceability and Availability): "minimum RAS Extension" only
99- S (Security Extension)
100- ST (System Timer Extension)
101
102For information on the specifics of these extensions, please refer
103to the `Armv8-M Arm Architecture Reference Manual
104<https://developer.arm.com/documentation/ddi0553/latest>`_.
105
106When a specific named CPU is being emulated, only those features which
107are present in hardware for that CPU are emulated. (If a feature is
108not in the list above then it is not supported, even if the real
109hardware should have it.) There is no equivalent of the ``max`` CPU for
110M-profile.
111