arch: add _zicsr_zifencei_zba_zbb as default march for gcc toolchain

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
This commit is contained in:
Andy Hu
2023-03-09 00:12:58 +08:00
parent cce9841ee9
commit d02c4a78f0
+2
View File
@@ -32,8 +32,10 @@ endif
# suffixes are needed to enable their support. In Buildroot, we assume # suffixes are needed to enable their support. In Buildroot, we assume
# all RISC-V cores that support Linux implement those instructions, so # all RISC-V cores that support Linux implement those instructions, so
# we unconditionally enable those extensions. # we unconditionally enable those extensions.
# For starfive JH7110, add _zicsr_zifencei_zba_zbb as default march
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_12),y) ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_12),y)
GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)_zicsr_zifencei GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)_zicsr_zifencei
GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)_zba_zbb
endif endif
endif endif