summaryrefslogtreecommitdiff
path: root/arch/arm64/tools/gen-sysreg.awk
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2022-11-30 20:16:15 +0300
committerWill Deacon <will@kernel.org>2022-12-01 18:53:14 +0300
commit7587cdef55928ef70d4e945003646711ad39e405 (patch)
tree46a48b65e49317789a8ce8305a5e0d3a785b910b /arch/arm64/tools/gen-sysreg.awk
parentc6e155e8e561dafcba9faf86598d7ec69942ab86 (diff)
downloadlinux-7587cdef55928ef70d4e945003646711ad39e405.tar.xz
arm64/sysreg: Extend the maximum width of a register and symbol name
32bit has multiple values for its id registers, as extra properties were added to the CPUs. Some of these end up having long names, which exceed the fixed 48 character column that the sysreg awk script generates. For example, the ID_MMFR1_EL1.L1Hvd field has an encoding whose natural name would be 'invalidate Iside only'. Using this causes compile errors as the script generates the following: #define ID_MMFR1_EL1_L1Hvd_INVALIDATE_ISIDE_ONLYUL(0b0001) Add a few extra characters. Reviewed-by: Mark Brown <broonie@kernel.org> Signed-off-by: James Morse <james.morse@arm.com> Link: https://lore.kernel.org/r/20221130171637.718182-17-james.morse@arm.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/tools/gen-sysreg.awk')
-rwxr-xr-xarch/arm64/tools/gen-sysreg.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/tools/gen-sysreg.awk b/arch/arm64/tools/gen-sysreg.awk
index db461921d256..c350164a3955 100755
--- a/arch/arm64/tools/gen-sysreg.awk
+++ b/arch/arm64/tools/gen-sysreg.awk
@@ -33,7 +33,7 @@ function expect_fields(nf) {
# Print a CPP macro definition, padded with spaces so that the macro bodies
# line up in a column
function define(name, val) {
- printf "%-48s%s\n", "#define " name, val
+ printf "%-56s%s\n", "#define " name, val
}
# Print standard BITMASK/SHIFT/WIDTH CPP definitions for a field