OSDN Git Service

RISC-V: Implement multi-letter ISA extension probing framework
authorAtish Patra <atishp@rivosinc.com>
Mon, 14 Mar 2022 20:38:43 +0000 (13:38 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 17 Mar 2022 19:18:00 +0000 (12:18 -0700)
commit02d52fbd940af7d7fe0a523e99938113b2addd35
treeb31a40200efc8cc7468c87d119cca05e389a6661
parent40a4d0dfbcf00c8534ab8724041705b3db6c5ce2
RISC-V: Implement multi-letter ISA extension probing framework

Multi-letter extensions can be probed using exising
riscv_isa_extension_available API now. It doesn't support versioning
right now as there is no use case for it.
Individual extension specific implementation will be added during
each extension support.

Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/hwcap.h
arch/riscv/kernel/cpufeature.c