From d16331c054c4a7c36e3a16f0268203abaae44da1 Mon Sep 17 00:00:00 2001 From: Ruifeng Wang Date: Tue, 12 Jan 2021 02:57:08 +0000 Subject: [PATCH] config/arm: add Neoverse N2 Add Arm Neoverse N2 cpu support. Signed-off-by: Ruifeng Wang Acked-by: Jerin Jacob Reviewed-by: Honnappa Nagarahalli --- config/arm/arm64_n2_linux_gcc | 17 +++++++++++++++++ config/arm/meson.build | 11 ++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 config/arm/arm64_n2_linux_gcc diff --git a/config/arm/arm64_n2_linux_gcc b/config/arm/arm64_n2_linux_gcc new file mode 100644 index 0000000000..78f6f3e2be --- /dev/null +++ b/config/arm/arm64_n2_linux_gcc @@ -0,0 +1,17 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' +strip = 'aarch64-linux-gnu-strip' +pkgconfig = 'aarch64-linux-gnu-pkg-config' +pcap-config = '' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = '0x41' +implementor_pn = '0xd49' diff --git a/config/arm/meson.build b/config/arm/meson.build index 42b4e43c74..5fd1c40a05 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -89,6 +89,14 @@ flags_n1generic_extra = [ ['RTE_MAX_NUMA_NODES', 1], ['RTE_EAL_NUMA_AWARE_HUGEPAGES', false], ['RTE_LIBRTE_VHOST_NUMA', false]] +flags_n2generic_extra = [ + ['RTE_MACHINE', '"neoverse-n2"'], + ['RTE_MAX_LCORE', 64], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_ARM_FEATURE_ATOMICS', true], + ['RTE_USE_C11_MEM_MODEL', true], + ['RTE_EAL_NUMA_AWARE_HUGEPAGES', false], + ['RTE_LIBRTE_VHOST_NUMA', false]] machine_args_generic = [ ['default', ['-march=armv8-a+crc', '-moutline-atomics']], @@ -100,7 +108,8 @@ machine_args_generic = [ ['0xd09', ['-mcpu=cortex-a73']], ['0xd0a', ['-mcpu=cortex-a75']], ['0xd0b', ['-mcpu=cortex-a76']], - ['0xd0c', ['-march=armv8.2-a+crypto', '-mcpu=neoverse-n1'], flags_n1generic_extra]] + ['0xd0c', ['-march=armv8.2-a+crypto', '-mcpu=neoverse-n1'], flags_n1generic_extra], + ['0xd49', ['-march=armv8.5-a+crypto+sve2'], flags_n2generic_extra]] machine_args_cavium = [ ['default', ['-march=armv8-a+crc+crypto','-mcpu=thunderx']], -- 2.20.1