[PATCH v2 06/10] arm64: sysreg: Drop the leading zeros from the TRFCR_ELx.TS values
From: Fuad Tabba
Date: Fri Nov 27 2026 - 02:45:10 EST
TS in TRFCR_EL1 and TRFCR_EL2 is a two-bit field, but its enum values
are written with four binary digits. They're the only enum values in the
sysreg file whose number of digits differs from their field's width, and
the values themselves fit.
Drop the two leading zeros from each, ahead of a check that requires
every enum value to have as many digits as its field has bits.
No functional change intended.
Reviewed-by: Mark Brown <broonie@xxxxxxxxxx>
Signed-off-by: Fuad Tabba <fuad.tabba@xxxxxxxxx>
---
arch/arm64/tools/sysreg | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg
index ebe5c5bd6fef6..5b587a7544e40 100644
--- a/arch/arm64/tools/sysreg
+++ b/arch/arm64/tools/sysreg
@@ -2919,9 +2919,9 @@ EndSysreg
Sysreg TRFCR_EL1 3 0 1 2 1
Res0 63:7
UnsignedEnum 6:5 TS
- 0b0001 VIRTUAL
- 0b0010 GUEST_PHYSICAL
- 0b0011 PHYSICAL
+ 0b01 VIRTUAL
+ 0b10 GUEST_PHYSICAL
+ 0b11 PHYSICAL
EndEnum
Res0 4:2
Field 1 ExTRE
@@ -4300,10 +4300,10 @@ EndSysreg
Sysreg TRFCR_EL2 3 4 1 2 1
Res0 63:7
UnsignedEnum 6:5 TS
- 0b0000 USE_TRFCR_EL1_TS
- 0b0001 VIRTUAL
- 0b0010 GUEST_PHYSICAL
- 0b0011 PHYSICAL
+ 0b00 USE_TRFCR_EL1_TS
+ 0b01 VIRTUAL
+ 0b10 GUEST_PHYSICAL
+ 0b11 PHYSICAL
EndEnum
Res0 4
Field 3 CX
--
2.47.3