[PATCH] eal/x86: fix LZCNT CPU feature bit

Thomas Monjalon thomas at monjalon.net
Wed Sep 23 18:48:33 CEST 2026


31/08/2026 10:02, Bruce Richardson:
> On Fri, Aug 28, 2026 at 09:32:52PM +0100, Yonghao Li wrote:
> > --- a/lib/eal/x86/rte_cpuflags.c
> > +++ b/lib/eal/x86/rte_cpuflags.c
> > @@ -137,7 +137,7 @@ struct feature_entry rte_cpu_feature_table[] = {
> >  	FEAT_DEF(AVX512VP2INTERSECT, 0x00000007, 0, RTE_REG_EDX,  8)
> >  
> >  	FEAT_DEF(LAHF_SAHF, 0x80000001, 0, RTE_REG_ECX,  0)
> > -	FEAT_DEF(LZCNT, 0x80000001, 0, RTE_REG_ECX,  4)
> > +	FEAT_DEF(LZCNT, 0x80000001, 0, RTE_REG_ECX,  5)
> >  	FEAT_DEF(MONITORX, 0x80000001, 0, RTE_REG_ECX,  29)
> >  
> 
> Confirmed by checking Table 21-90 in the Intel SDM Vol 1 docs. Thanks for
> catching this.
> 
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Applied, thanks.





More information about the stable mailing list