From: Juraj Linkeš Date: Thu, 22 Apr 2021 09:11:51 +0000 (+0200) Subject: eal/arm64: fix platform register bit X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=20c7744f8d333e9388b479b308c8c2a149110703;p=dpdk.git eal/arm64: fix platform register bit REG_PLATFORM only uses bit 0 to indicate whether the value retrieved from hardware matches PLATFORM_STR. Fixes: 97523f822ba9 ("eal/arm: add CPU flags for ARMv8") Cc: stable@dpdk.org Signed-off-by: Juraj Linkeš Reviewed-by: Jerin Jacob Reviewed-by: Ruifeng Wang --- diff --git a/lib/eal/arm/rte_cpuflags.c b/lib/eal/arm/rte_cpuflags.c index e3a53bcece..845770f1e5 100644 --- a/lib/eal/arm/rte_cpuflags.c +++ b/lib/eal/arm/rte_cpuflags.c @@ -108,7 +108,7 @@ const struct feature_entry rte_cpu_feature_table[] = { FEAT_DEF(SVEF32MM, REG_HWCAP2, 10) FEAT_DEF(SVEF64MM, REG_HWCAP2, 11) FEAT_DEF(SVEBF16, REG_HWCAP2, 12) - FEAT_DEF(AARCH64, REG_PLATFORM, 1) + FEAT_DEF(AARCH64, REG_PLATFORM, 0) }; #endif /* RTE_ARCH */