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 cpaelzer committed May 17, 2021
1 parent 606ef49 commit d973b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/librte_eal/common/arch/arm/rte_cpuflags.c
Expand Up @@ -95,7 +95,7 @@ const struct feature_entry rte_cpu_feature_table[] = {
FEAT_DEF(SHA2, REG_HWCAP, 6)
FEAT_DEF(CRC32, REG_HWCAP, 7)
FEAT_DEF(ATOMICS, REG_HWCAP, 8)
FEAT_DEF(AARCH64, REG_PLATFORM, 1)
FEAT_DEF(AARCH64, REG_PLATFORM, 0)
};
#endif /* RTE_ARCH */

Expand Down

0 comments on commit d973b35

Please sign in to comment.