eal: move cpu flags out of headers
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 28 Jan 2016 12:20:23 +0000 (12:20 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 29 Jan 2016 18:41:48 +0000 (19:41 +0100)
commitc344eab3eecb71203681e6c5c5b64aefb2d7ad94
tree96311e43a7e8fe43ed5d9638022baea0c8989908
parentdd34ff1f0e03b2c5e4a97e9fbcba5c8238aac573
eal: move cpu flags out of headers

Move cpu_feature_table array from arch specific rte_cpuflags.h files to
new arch specific rte_cpuflags.c files.

Main motivation is to escape from static variable declarations in
header files. cpu_feature_table has many copies in final binary, even
exist in some object files that does not use this variable at all.

And this can be a sample to create architecture specific source files
and move some functions which are not performance sensitive from
architecture header files to source files.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
14 files changed:
lib/librte_eal/bsdapp/eal/Makefile
lib/librte_eal/bsdapp/eal/rte_eal_version.map
lib/librte_eal/common/arch/arm/rte_cpuflags.c [new file with mode: 0644]
lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c [new file with mode: 0644]
lib/librte_eal/common/arch/tile/rte_cpuflags.c [new file with mode: 0644]
lib/librte_eal/common/arch/x86/rte_cpuflags.c [new file with mode: 0644]
lib/librte_eal/common/eal_common_cpuflags.c
lib/librte_eal/common/include/arch/arm/rte_cpuflags_32.h
lib/librte_eal/common/include/arch/arm/rte_cpuflags_64.h
lib/librte_eal/common/include/arch/ppc_64/rte_cpuflags.h
lib/librte_eal/common/include/arch/tile/rte_cpuflags.h
lib/librte_eal/common/include/arch/x86/rte_cpuflags.h
lib/librte_eal/linuxapp/eal/Makefile
lib/librte_eal/linuxapp/eal/rte_eal_version.map