[PATCH 5/6] riscv: hwprobe: Report XTheadVector only when available
Andy Chiu
tchiu at tenstorrent.com
Fri Oct 16 14:48:11 PDT 2026
On Tue, Oct 06, 2026 at 09:53:02AM +0200, Radim Krcmár wrote:
> User-mode use of XTheadVector requires non-Off sstatus.VS, which we set
> only when has_xtheadvector() (CONFIG_RISCV_ISA_XTHEADVECTOR and
> XTheadVector on all harts). XTheadVector also bundles operations with
> floating state, which additionally requires non-Off sstatus.FS and hence
> has_fpu(). hwprobe reports XTheadVector from the per-hart vendor ISA
> bitmaps alone, so it can advertise an extension that is always disabled
> in user-mode.
>
> Report correct environment to user-mode.
>
> Fixes: a5ea53da65c5 ("riscv: hwprobe: Add thead vendor extension probing")
> Signed-off-by: Radim Krcmár <radim.krcmar at oss.qualcomm.com>
Reviewed-by: Andy Chiu <tchiu at tenstorrent.com>
More information about the linux-riscv
mailing list