OSDN Git Service

RISC-V: Only provide the single-letter extensions in HWCAP
authorPalmer Dabbelt <palmer@rivosinc.com>
Thu, 2 Feb 2023 23:38:32 +0000 (15:38 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 22 Feb 2023 01:21:14 +0000 (17:21 -0800)
commit2350bd192fa2d9ffa7a0dc7db12699c0f71af7f8
tree4582ab7b2521d02bb3204962d6e4362690c34bfb
parentb49f700668fff7565b945dce823def79bff59bb0
RISC-V: Only provide the single-letter extensions in HWCAP

The recent refactoring led to us leaking some HWCAP bits to userspace
that didn't make much sense.  With any luck we'll have a better scheme
soon, but for now just mask off those bits to avoid polluting userspace.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230202233832.11036-1-palmer@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/elf.h
arch/riscv/include/asm/hwcap.h