Commit 92de4bb2 authored by Mao Minkai's avatar Mao Minkai Committed by guzitao
Browse files

sw64 bpf: add BPF_NOSPEC jit

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IB73UR



--------------------------------

Add BPF_NOSPEC jit support for sw64.

Signed-off-by: default avatarMao Minkai <maominkai@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 056a6f84
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1217,6 +1217,13 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx,
			return ret;
		break;

	/* speculation barrier */
	case BPF_ST | BPF_NOSPEC:
		/*
		 * Nothing required here.
		 */
		break;

	/* ST: *(size *)(dst + off) = imm */
	case BPF_ST | BPF_MEM | BPF_W:
	case BPF_ST | BPF_MEM | BPF_H: