Browse Source

arch: add _zicsr_zifencei_zba_zbb as default march for gcc toolchain

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
Andy Hu 1 year ago
parent
commit
d02c4a78f0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      arch/arch.mk.riscv

+ 2 - 0
arch/arch.mk.riscv

@@ -32,8 +32,10 @@ endif
 # suffixes are needed to enable their support. In Buildroot, we assume
 # all RISC-V cores that support Linux implement those instructions, so
 # we unconditionally enable those extensions.
+# For starfive JH7110, add _zicsr_zifencei_zba_zbb as default march
 ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_12),y)
 GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)_zicsr_zifencei
+GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)_zba_zbb
 endif
 
 endif