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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user