diff options
author | Nitin Saxena <nsaxena@marvell.com> | 2020-08-25 19:58:37 +0530 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-08-27 09:57:02 +0000 |
commit | e2f5236dc521f64c8ea08dc84893ff81f9ac7232 (patch) | |
tree | 680ba0aed1969711a4a0958894a8f1e28014b96c /src/cmake/cpu.cmake | |
parent | ed04407829728c5d258b6600155edabd5198d971 (diff) |
vppinfra: Multiarch support for OCTEONTX2 SoC
Type: feature
- Added multiarch support for Marvell OCTEONTX2
- Corrected Marvell THUNDERX2 spelling
Signed-off-by: Nitin Saxena <nsaxena@marvell.com>
Change-Id: I42d3654aeda89759a2db9d695592ee3227b26c2b
Diffstat (limited to 'src/cmake/cpu.cmake')
-rw-r--r-- | src/cmake/cpu.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmake/cpu.cmake b/src/cmake/cpu.cmake index 0e47f3325cf..c7ad1a4a0bc 100644 --- a/src/cmake/cpu.cmake +++ b/src/cmake/cpu.cmake @@ -99,6 +99,10 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)") if(compiler_flag_march_core_qdf24xx) list(APPEND MARCH_VARIANTS "qdf24xx\;-march=armv8-a+crc+crypto -DCLIB_N_PREFETCHES=8") endif() + check_c_compiler_flag("-march=armv8.2-a+crc+crypto+lse" compiler_flag_march_core_octeontx2) + if(compiler_flag_march_core_octeontx2) + list(APPEND MARCH_VARIANTS "octeontx2\;-march=armv8.2-a+crc+crypto+lse -DCLIB_N_PREFETCHES=8") + endif() check_c_compiler_flag("-march=armv8.1-a+crc+crypto -mtune=thunderx2t99" compiler_flag_march_thunderx2t99) if(compiler_flag_march_thunderx2t99) if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 8.3)) |