git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/virtio: fix default duplex mode
[dpdk.git]
/
lib
/
eal
/
arm
/
rte_cpuflags.c
diff --git
a/lib/eal/arm/rte_cpuflags.c
b/lib/eal/arm/rte_cpuflags.c
index
e3a53bc
..
9346119
100644
(file)
--- a/
lib/eal/arm/rte_cpuflags.c
+++ b/
lib/eal/arm/rte_cpuflags.c
@@
-46,8
+46,12
@@
struct feature_entry {
#define FEAT_DEF(name, reg, bit) \
[RTE_CPUFLAG_##name] = {reg, bit, #name},
#define FEAT_DEF(name, reg, bit) \
[RTE_CPUFLAG_##name] = {reg, bit, #name},
+#ifdef RTE_ARCH_32
#ifdef RTE_ARCH_ARMv7
#define PLATFORM_STR "v7l"
#ifdef RTE_ARCH_ARMv7
#define PLATFORM_STR "v7l"
+#elif defined RTE_ARCH_ARMv8_AARCH32
+#define PLATFORM_STR "v8l"
+#endif
typedef Elf32_auxv_t _Elfx_auxv_t;
const struct feature_entry rte_cpu_feature_table[] = {
typedef Elf32_auxv_t _Elfx_auxv_t;
const struct feature_entry rte_cpu_feature_table[] = {
@@
-78,12
+82,15
@@
const struct feature_entry rte_cpu_feature_table[] = {
FEAT_DEF(SHA1, REG_HWCAP2, 2)
FEAT_DEF(SHA2, REG_HWCAP2, 3)
FEAT_DEF(CRC32, REG_HWCAP2, 4)
FEAT_DEF(SHA1, REG_HWCAP2, 2)
FEAT_DEF(SHA2, REG_HWCAP2, 3)
FEAT_DEF(CRC32, REG_HWCAP2, 4)
+ #ifdef RTE_ARCH_ARMv7
FEAT_DEF(V7L, REG_PLATFORM, 0)
FEAT_DEF(V7L, REG_PLATFORM, 0)
+ #elif defined RTE_ARCH_ARMv8_AARCH32
+ FEAT_DEF(V8L, REG_PLATFORM, 0)
+ #endif
};
};
-#elif defined RTE_ARCH_
ARM
64
+#elif defined RTE_ARCH_64
#define PLATFORM_STR "aarch64"
#define PLATFORM_STR "aarch64"
-typedef Elf64_auxv_t _Elfx_auxv_t;
const struct feature_entry rte_cpu_feature_table[] = {
FEAT_DEF(FP, REG_HWCAP, 0)
const struct feature_entry rte_cpu_feature_table[] = {
FEAT_DEF(FP, REG_HWCAP, 0)
@@
-108,7
+115,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(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 */
};
#endif /* RTE_ARCH */