Skip to content

Commit

Permalink
eal/arm64: fix platform register bit
Browse files Browse the repository at this point in the history
[ upstream commit 20c7744 ]

REG_PLATFORM only uses bit 0 to indicate whether the value retrieved
from hardware matches PLATFORM_STR.

Fixes: 97523f8 ("eal/arm: add CPU flags for ARMv8")

Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
  • Loading branch information
jlinkes authored and steevenlee committed Jun 8, 2021
1 parent 35ad25c commit 5f90abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/librte_eal/arm/rte_cpuflags.c
Expand Up @@ -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 */

Expand Down

0 comments on commit 5f90abb

Please sign in to comment.