blob: 92578dd11d64c39b762fb8858a0bbb597b571e96 [file] [log] [blame]
Martin Åbergf8d1a9e2020-10-16 20:55:04 +02001# SPDX-License-Identifier: Apache-2.0
2
Martin Åberg53a4acb2020-11-30 12:19:27 +01003if(NOT CONFIG_FPU)
4 list(APPEND TOOLCHAIN_C_FLAGS -msoft-float)
5 list(APPEND TOOLCHAIN_LD_FLAGS -msoft-float)
6endif()
Martin Åbergf8d1a9e2020-10-16 20:55:04 +02007
8if(CONFIG_SPARC_CASA)
9 # SPARC V8, mul/div, casa
10 list(APPEND TOOLCHAIN_C_FLAGS -mcpu=leon3)
11 list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=leon3)
12else()
13 # SPARC V8, mul/div, no casa
14 list(APPEND TOOLCHAIN_C_FLAGS -mcpu=leon)
15 list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=leon)
16endif()