config/arm: add Neoverse N2
authorRuifeng Wang <ruifeng.wang@arm.com>
Tue, 12 Jan 2021 02:57:08 +0000 (02:57 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 14 Jan 2021 15:42:25 +0000 (16:42 +0100)
Add Arm Neoverse N2 cpu support.

Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
config/arm/arm64_n2_linux_gcc [new file with mode: 0644]
config/arm/meson.build

diff --git a/config/arm/arm64_n2_linux_gcc b/config/arm/arm64_n2_linux_gcc
new file mode 100644 (file)
index 0000000..78f6f3e
--- /dev/null
@@ -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'
index 42b4e43..5fd1c40 100644 (file)
@@ -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']],