OSDN Git Service

riscv: cpufeature: extend riscv_cpufeature_patch_func to all ISA extensions
authorJisheng Zhang <jszhang@kernel.org>
Sat, 28 Jan 2023 17:28:47 +0000 (01:28 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 1 Feb 2023 07:29:36 +0000 (23:29 -0800)
commit4bf8860760d9930019e4839fb4e8adc1e0bf1f91
tree40f84588f7c4946a0680afa6b98cc1082e11291f
parentd8a3d8a75206d3dfba64b6d4468b7cf44d4eb4d7
riscv: cpufeature: extend riscv_cpufeature_patch_func to all ISA extensions

riscv_cpufeature_patch_func() currently only scans a limited set of
cpufeatures, explicitly defined with macros. Extend it to probe for all
ISA extensions.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230128172856.3814-5-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/errata_list.h
arch/riscv/kernel/cpufeature.c