riscv: hwprobe: Add thead vendor extension probingAdd a new hwprobe key "RISCV_HWPROBE_KEY_VENDOR_EXT_THEAD_0" whichallows userspace to probe for the new RISCV_ISA_VENDOR_EXT_XTHEADVECTORvendor e
riscv: hwprobe: Add thead vendor extension probingAdd a new hwprobe key "RISCV_HWPROBE_KEY_VENDOR_EXT_THEAD_0" whichallows userspace to probe for the new RISCV_ISA_VENDOR_EXT_XTHEADVECTORvendor extension.This new key will allow userspace code to probe for which thead vendorextensions are supported. This API is modeled to be consistent withRISCV_HWPROBE_KEY_IMA_EXT_0. The bitmask returned will have each bitcorresponding to a supported thead vendor extension of the cpumask set.Just like RISCV_HWPROBE_KEY_IMA_EXT_0, this allows a userspace programto determine all of the supported thead vendor extensions in one call.Signed-off-by: Charlie Jenkins <[email protected]>Reviewed-by: Evan Green <[email protected]>Tested-by: Yangyu Chen <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Palmer Dabbelt <[email protected]>
show more ...