On Thu, 2025-10-16 at 17:22 +0800, Lulu Cheng wrote:
> +  if (CPUCFG2 & CPUCFG2_LSX)
> +    setCPUFeature (FEAT_LSX);
> +  if (CPUCFG2 & CPUCFG2_LASX)
> +    setCPUFeature (FEAT_LASX);

LSX and LASX capabilities should be obtained via kernel interface
because they need kernel support.  On Linux they can be obtained via
getauxval(AT_HWCAP), and on other kernels we can only assume they are
unavailable until their UAPI is stabilized.

-- 
Xi Ruoyao <[email protected]>

Reply via email to