Skip to content

Commit 0a2eec8

Browse files
brooniewilldeacon
authored andcommitted
arm64: cpufeature: Always specify and use a field width for capabilities
Since all the fields in the main ID registers are 4 bits wide we have up until now not bothered specifying the width in the code. Since we now wish to use this mechanism to enumerate features from the floating point feature registers which do not follow this pattern add a width to the table. This means updating all the existing table entries but makes it less likely that we run into issues in future due to implicitly assuming a 4 bit width. Signed-off-by: Mark Brown <[email protected]> Cc: Suzuki K Poulose <[email protected]> Reviewed-by: Suzuki K Poulose <[email protected]> Reviewed-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 3bb72d8 commit 0a2eec8

File tree

2 files changed

+102
-66
lines changed

2 files changed

+102
-66
lines changed

arch/arm64/include/asm/cpufeature.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ struct arm64_cpu_capabilities {
356356
struct { /* Feature register checking */
357357
u32 sys_reg;
358358
u8 field_pos;
359+
u8 field_width;
359360
u8 min_field_value;
360361
u8 hwcap_type;
361362
bool sign;

0 commit comments

Comments
 (0)