diff options
| author | Pu Lehui <pulehui@huawei.com> | 2023-08-24 09:50:01 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2023-08-24 09:13:08 -0700 |
| commit | 0209fd511fa4371f49d6e38f25a258831bb90391 (patch) | |
| tree | f9b9c3edfb2ca0d2b40f42f8e3fbcfe5b04dec42 /tools/testing/selftests/bpf/progs/test_ldsx_insn.c | |
| parent | riscv, bpf: Support unconditional bswap insn (diff) | |
| download | linux-0209fd511fa4371f49d6e38f25a258831bb90391.tar.gz linux-0209fd511fa4371f49d6e38f25a258831bb90391.zip | |
selftests/bpf: Enable cpu v4 tests for RV64
Enable cpu v4 tests for RV64, and the relevant tests have passed.
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Acked-by: Björn Töpel <bjorn@kernel.org>
Link: https://lore.kernel.org/r/20230824095001.3408573-8-pulehui@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_ldsx_insn.c')
| -rw-r--r-- | tools/testing/selftests/bpf/progs/test_ldsx_insn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_ldsx_insn.c b/tools/testing/selftests/bpf/progs/test_ldsx_insn.c index 916d9435f12c..67c14ba1e87b 100644 --- a/tools/testing/selftests/bpf/progs/test_ldsx_insn.c +++ b/tools/testing/selftests/bpf/progs/test_ldsx_insn.c @@ -5,7 +5,8 @@ #include <bpf/bpf_helpers.h> #include <bpf/bpf_tracing.h> -#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86)) && __clang_major__ >= 18 +#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \ + (defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64)) && __clang_major__ >= 18 const volatile int skip = 0; #else const volatile int skip = 1; |
