[PATCH v2 1/1] riscv: Add RVV memset via multiarch/IFUNC

Peter Bergner bergner@tenstorrent.com
Wed Nov 19 19:16:43 GMT 2025


On 11/18/25 2:39 PM, Vineet Gupta wrote:
> On 11/11/25 04:15, Yao Zihong wrote:
>>> Currently, the resolver still selects the RVV variant when the V extension
>>> is disabled via prctl().
> 
> Discussed this separately with Peter, Jeff and some of the kernel folks here at
> Rivos. It seems the prctl disabled status (at the time of startup, not after the
> fact) can still be honored by doing an additional prctl (PR_RISCV_V_GET_CONTROL)
> is hwprobe says V is present. This will be additional syscall for sure, but in
> the grand scheme of things (syscalls during loader running time), this seems
> negligible.
> IMHO, this can be a followup and need not be tied to this patch and the baseline
> should go in sooner than later.

I agree it should be a followup patch, since we're still resolving (no pun intended)
how we should handle that special case.

Peter



More information about the Libc-alpha mailing list