mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
selftests/bpf: Enable gotox liveness test for riscv64
The riscv64 JIT now supports gotox, so enable the gotox liveness test in compute_live_registers.c on riscv64 as well. The guard is 64-bit only because the RV32 JIT does not implement gotox. Signed-off-by: Chen Pei <cp0613@linux.alibaba.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20260928071845.2432-4-cp0613@linux.alibaba.com
This commit is contained in:
parent
5f750ad6d6
commit
6ce75af4f5
|
|
@ -496,7 +496,8 @@ __naked void subprog_ret_reg_pair(void)
|
|||
::: __clobber_all);
|
||||
}
|
||||
|
||||
#if defined(__TARGET_ARCH_x86) || defined(__TARGET_ARCH_arm64)
|
||||
#if defined(__TARGET_ARCH_x86) || defined(__TARGET_ARCH_arm64) || \
|
||||
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64)
|
||||
|
||||
SEC("socket")
|
||||
__log_level(2)
|
||||
|
|
@ -535,7 +536,7 @@ void gotox(void)
|
|||
: __clobber_all);
|
||||
}
|
||||
|
||||
#endif /* __TARGET_ARCH_x86 || __TARGET_ARCH_arm64 */
|
||||
#endif /* gotox: x86, arm64, riscv64 */
|
||||
|
||||
/* to retain debug info for BTF generation */
|
||||
void kfunc_root(void)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user