RISC-V: Correctly print supported extensions
authorTsukasa OI <research_trasio@irq.a4lg.com>
Sat, 12 Feb 2022 06:29:59 +0000 (15:29 +0900)
committerminda.chen <minda.chen@starfivetech.com>
Tue, 3 Jan 2023 06:26:17 +0000 (14:26 +0800)
commitb6bbdedcbaad78c1fcdb5c3f49a5c110cc3a33f8
tree921526452cb5fb16590b0f0d8c0fc99d1de42636
parent9a7e4fe5717564dfbd317990b50eddb42bb36ae8
RISC-V: Correctly print supported extensions

This commit replaces BITS_PER_LONG with number of alphabet letters.

Current ISA pretty-printing code expects extension 'a' (bit 0) through
'z' (bit 25).  Although bit 26 and higher is not currently used (thus never
cause an issue in practice), it will be an annoying problem if we start to
use those in the future.

This commit disables printing high bits for now.

Reviewed-by: Anup Patel <anup@brainfault.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Tsukasa OI <research_trasio@irq.a4lg.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
arch/riscv/kernel/cpufeature.c