More Arm FEAT_FOO documentation updates
cover More Arm FEAT_FOO documentation updates
While reviewing the latest Arm ARM (M.c) I found a few more feature names that have been added for old existing features or we forgot to update in our emulation list.
These are all documentation updates so should be good for merging during softfreeze.
Alex.
Alex Bennée (8):
docs/system: declare support for FEAT_EVT2 docs/system: add big and little endian features names docs/system: document FEAT_Secure docs/system: document FEAT_MTE4
docs/system: document FEAT_IVIPT docs/system: fix sorting of FEAT_S2[PIE|FWB] docs/system: add FEAT_S2TGran[4|16|64]K features docs/system: add FEAT_HAF
docs/system/arm/emulation.rst | 14 +++++++++++++- target/arm/cpu-max.c | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-)
Signature · 1 line
2.47.3
PATCH 1/8 docs/system: declare support for FEAT_EVT2
The actual implementation supports the additional trapping registers of HCR_TTLBIS | HCR_TTLBOS. We already set the value to 2 for -cpu max and don't currently model any CPUs that only have FEAT_EVT.
--- docs/system/arm/emulation.rst | 1 + target/arm/cpu-max.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
docs/system/arm/emulation.rst +1 -0
@@ -68,6 +68,7 @@ the following architecture extensions: - FEAT_EPAC (Enhanced pointer authentication) - FEAT_ETS2 (Enhanced Translation Synchronization) - FEAT_EVT (Enhanced Virtualization Traps) +- FEAT_EVT2 (Enhanced Virtualization Traps 2) - FEAT_F8F16MM (8-bit floating-point matrix multiply-accumulate to half-precision) - FEAT_F8F32MM (8-bit floating-point matrix multiply-accumulate to single-precision) - FEAT_F32MM (Single-precision Matrix Multiplication)
target/arm/cpu-max.c +1 -1
@@ -130,7 +130,7 @@ void aa32_max_features(ARMCPU *cpu) t =FIELD_DP32 (t,ID_MMFR4 ,AC2 ,1 );/* ACTLR2, HACTLR2 */ t =FIELD_DP32 (t,ID_MMFR4 ,CNP ,1 );/* FEAT_TTCNP */ t =FIELD_DP32 (t,ID_MMFR4 ,XNX ,1 );/* FEAT_XNX */ - t =FIELD_DP32 (t,ID_MMFR4 ,EVT ,2 );/* FEAT_EVT */ + t =FIELD_DP32 (t,ID_MMFR4 ,EVT ,2 );/* FEAT_EVT2 */ SET_IDREG (isar,ID_MMFR4 , t);FIELD_DP32_IDREG (isar,ID_MMFR5 ,ETS ,2 );/* FEAT_ETS2 */
Signature · 1 line
2.47.3
PATCH 2/8 docs/system: add big and little endian features names
In reply to Alex BennéeWe've always supported these features but they have official feature names in the Arm ARM now so we should declare them for completeness.
--- docs/system/arm/emulation.rst | 4 ++++ 1 file changed, 4 insertions(+)
docs/system/arm/emulation.rst +4 -0
@@ -31,6 +31,8 @@ the following architecture extensions: - FEAT_BBML1 (Translation table break-before-make level 1) - FEAT_BBML2 (Translation table break-before-make level 2) - FEAT_BF16 (AArch64 BFloat16 instructions) +- FEAT_BigEnd (Support for big-endian at EL1 and above) +- FEAT_BigEndEL0 (Support for big-endian at EL0) - FEAT_BTI (Branch Target Identification) - FEAT_CCIDX (Extended cache index) - FEAT_CHK (Check Feature Status)
@@ -103,6 +105,8 @@ the following architecture extensions: - FEAT_IDST (ID space trap handling) - FEAT_IESB (Implicit error synchronization event) - FEAT_JSCVT (JavaScript conversion instructions) +- FEAT_LittleEnd (Support for little-endian at EL1 and above) +- FEAT_LittleEndEL0 (Support for little-endian at EL0) - FEAT_LOR (Limited ordering regions) - FEAT_LPA (Large Physical Address space) - FEAT_LPA2 (Large Physical and virtual Address space v2)
Signature · 1 line
2.47.3
PATCH 3/8 docs/system: document FEAT_Secure
In reply to Alex BennéeWe have had support for Secure state ever since the initial TrustZone support.
--- docs/system/arm/emulation.rst | 1 + 1 file changed, 1 insertion(+)
docs/system/arm/emulation.rst +1 -0
@@ -162,6 +162,7 @@ the following architecture extensions: - FEAT_S2FWB (Stage 2 forced Write-Back) - FEAT_SB (Speculation Barrier) - FEAT_SCTLR2 (Extension to SCTLR_ELx) +- FEAT_Secure (Support for Secure state) - FEAT_SEL2 (Secure EL2) - FEAT_SHA1 (SHA1 instructions) - FEAT_SHA256 (SHA256 instructions)
Signature · 1 line
2.47.3
PATCH 4/8 docs/system: document FEAT_MTE4
In reply to Alex BennéeFEAT_MTE4 includes the sub-features: FEAT_MTE_CANONICAL_TAGS, FEAT_MTE_TAGGED_FAR, FEAT_MTE_STORE_ONLY and FEAT_MTE_NO_ADDRESS_TAGS.
We have already implemented those so update the docs to include the rolled up feature.
--- docs/system/arm/emulation.rst | 1 + 1 file changed, 1 insertion(+)
docs/system/arm/emulation.rst +1 -0
@@ -126,6 +126,7 @@ the following architecture extensions: - FEAT_MTE (Memory Tagging Extension) - FEAT_MTE2 (Memory Tagging Extension) - FEAT_MTE3 (MTE Asymmetric Fault Handling) +- FEAT_MTE4 (Enhanced Memory Tagging Extension) - FEAT_MTE_ASYM_FAULT (Memory tagging asymmetric faults) - FEAT_MTE_ASYNC (Asynchronous reporting of Tag Check Fault) - FEAT_MTE_CANONICAL_TAGS (Canonical tag checking)
Signature · 1 line
2.47.3
PATCH 5/8 docs/system: document FEAT_IVIPT
In reply to Alex BennéeThis is for documentation completeness - a system implements FEAT_IVIPT if it implements any permitted instruction cache implementation. QEMU doesn't model caches which is a permitted (non)implementation.
--- docs/system/arm/emulation.rst | 1 + 1 file changed, 1 insertion(+)
docs/system/arm/emulation.rst +1 -0
@@ -104,6 +104,7 @@ the following architecture extensions: - FEAT_I8MM (AArch64 Int8 matrix multiplication instructions) - FEAT_IDST (ID space trap handling) - FEAT_IESB (Implicit error synchronization event) +- FEAT_IVIPT (The IVIPT Extension) - FEAT_JSCVT (JavaScript conversion instructions) - FEAT_LittleEnd (Support for little-endian at EL1 and above) - FEAT_LittleEndEL0 (Support for little-endian at EL0)
Signature · 1 line
2.47.3
PATCH 6/8 docs/system: fix sorting of FEAT_S2[PIE|FWB]
In reply to Alex Bennée--- docs/system/arm/emulation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
docs/system/arm/emulation.rst +1 -1
@@ -160,8 +160,8 @@ the following architecture extensions: - FEAT_RNG_TRAP (Trapping support for RNDR/RNDRRS) - FEAT_RPRES (Increased precision of FRECPE and FRSQRTE) - FEAT_S1PIE (Stage 1 permission indirections) -- FEAT_S2PIE (Stage 2 permission indirections) - FEAT_S2FWB (Stage 2 forced Write-Back) +- FEAT_S2PIE (Stage 2 permission indirections) - FEAT_SB (Speculation Barrier) - FEAT_SCTLR2 (Extension to SCTLR_ELx) - FEAT_Secure (Support for Secure state)
Signature · 1 line
2.47.3
PATCH 7/8 docs/system: add FEAT_S2TGran[4|16|64]K features
In reply to Alex BennéeWe already have the logic to handle these granule sizes in our stage 2 page table walk code.
--- docs/system/arm/emulation.rst | 3 +++ 1 file changed, 3 insertions(+)
docs/system/arm/emulation.rst +3 -0
@@ -162,6 +162,9 @@ the following architecture extensions: - FEAT_S1PIE (Stage 1 permission indirections) - FEAT_S2FWB (Stage 2 forced Write-Back) - FEAT_S2PIE (Stage 2 permission indirections) +- FEAT_S2TGran16K (Support for 16KB memory translation granule size at stage 2) +- FEAT_S2TGran4K (Support for 4KB memory translation granule size at stage 2) +- FEAT_S2TGran64K (Support for 64KB memory translation granule size at stage 2) - FEAT_SB (Speculation Barrier) - FEAT_SCTLR2 (Extension to SCTLR_ELx) - FEAT_Secure (Support for Secure state)
Signature · 1 line
2.47.3
PATCH 8/8 docs/system: add FEAT_HAF
In reply to Alex BennéeThis is a subset of FEAT_HAFDBS which we have already implemented.
--- docs/system/arm/emulation.rst | 1 + 1 file changed, 1 insertion(+)
docs/system/arm/emulation.rst +1 -0
@@ -95,6 +95,7 @@ the following architecture extensions: - FEAT_FlagM2 (Enhancements to flag manipulation instructions) - FEAT_GCS (Guarded Control Stack Extension) - FEAT_GTG (Guest translation granule size) +- FEAT_HAF (Hardware management of the Access flag) - FEAT_HAFDBS (Hardware management of the access flag and dirty bit state) - FEAT_HBC (Hinted conditional branches) - FEAT_HCX (Support for the HCRX_EL2 register)
Signature · 1 line
2.47.3
Quoted 9 lines · Alex Bennée
Alex Bennée (8):
docs/system: declare support forFEAT_EVT2docs/system: add big and little endian features names docs/system: documentFEAT_Securedocs/system: documentFEAT_MTE4
docs/system: documentFEAT_IVIPTdocs/system: fix sorting of FEAT_S2[PIE|FWB] docs/system: add FEAT_S2TGran[4|16|64]K features docs/system: addFEAT_HAF
r~
Peter Maydell
AppliedQuoted 10 lines · Alex Bennée
While reviewing the latest Arm ARM (
M.c) I found a few more feature names that have been added for old existing features or we forgot to update in our emulation list.These are all documentation updates so should be good for merging during softfreeze.
Alex.
Applied to target-arm.next, thanks.
-- PMM