]> www.infradead.org Git - users/willy/xarray.git/commit
riscv: cpufeature: call match_isa_ext() for single-letter extensions
authorAndy Chiu <andy.chiu@sifive.com>
Thu, 9 May 2024 16:26:53 +0000 (00:26 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 30 May 2024 21:33:06 +0000 (14:33 -0700)
commit98a5700dfaec1043c8b69eb25f44896be557dd4c
treeaabbd15aa24e8f96fc18cb07f5a043a6b1a705f6
parent38a94c46660f5612c6ef37ec9754ec1543b038cd
riscv: cpufeature: call match_isa_ext() for single-letter extensions

Single-letter extensions may also imply multiple subextensions. For
example, Vector extension implies zve64d, and zve64d implies zve64f.

Extension parsing for "riscv,isa-extensions" has the ability to resolve
the dependency by calling match_isa_ext(). This patch makes deprecated
parser call the same function for single letter extensions.

Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240510-zve-detection-v5-3-0711bdd26c12@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/cpufeature.c