File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -735,6 +735,14 @@ config TOOLCHAIN_HAS_VECTOR_CRYPTO
735
735
def_bool $(as-instr, .option arch$(comma) +v$(comma) +zvkb)
736
736
depends on AS_HAS_OPTION_ARCH
737
737
738
+ config TOOLCHAIN_HAS_ZBA
739
+ bool
740
+ default y
741
+ depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64ima_zba)
742
+ depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32ima_zba)
743
+ depends on LLD_VERSION >= 150000 || LD_VERSION >= 23900
744
+ depends on AS_HAS_OPTION_ARCH
745
+
738
746
config RISCV_ISA_ZBA
739
747
bool "Zba extension support for bit manipulation instructions"
740
748
default y
Original file line number Diff line number Diff line change 77
77
".long 1b - .\n\t" \
78
78
".popsection" \
79
79
80
- #if defined(CONFIG_RISCV_ISA_ZBA ) && defined(CONFIG_RISCV_ISA_ZBKB )
80
+ #if defined(CONFIG_RISCV_ISA_ZBA ) && defined(CONFIG_TOOLCHAIN_HAS_ZBA ) \
81
+ && defined(CONFIG_RISCV_ISA_ZBKB )
81
82
#define runtime_const_ptr (sym ) \
82
83
({ \
83
84
typeof(sym) __ret, __tmp; \
93
94
: [__ret] "=r" (__ret), [__tmp] "=r" (__tmp)); \
94
95
__ret; \
95
96
})
96
- #elif defined(CONFIG_RISCV_ISA_ZBA )
97
+ #elif defined(CONFIG_RISCV_ISA_ZBA ) && defined( CONFIG_TOOLCHAIN_HAS_ZBA )
97
98
#define runtime_const_ptr (sym ) \
98
99
({ \
99
100
typeof(sym) __ret, __tmp; \
You can’t perform that action at this time.
0 commit comments