Re: [PATCH 5/6] riscv: hwprobe: Report XTheadVector only when available
From: Andy Chiu
Date: Fri Oct 16 2026 - 17:48:21 EST
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@xxxxxxxxxxxxxxxx>
Reviewed-by: Andy Chiu <tchiu@xxxxxxxxxxxxxxx>