Re: [PATCH v6] m68k, bpf: Add initial BPF JIT compiler support
From: Geert Uytterhoeven
Date: Mon Sep 28 2026 - 08:48:25 EST
Hi Kuwan-Wei,
On Sun, 27 Sept 2026 at 22:55, Kuan-Wei Chiu <visitorckw@xxxxxxxxx> wrote:
> Add a BPF JIT compiler for the m68k architecture.
>
> The JIT generates m68k machine code targeting m68020+ processors and
> coldfire parts with an mmu (ISA_B/ISA_C). It excludes plain 68000/68010
> and non-mmu coldfire processors, as it relies on 32-bit branch
> displacements (b<cc>.l) to handle large bpf programs.
>
> Tested with the test_bpf.ko:
> test_bpf: Summary: 1061 PASSED, 0 FAILED, [1049/1049 JIT'ed]
> test_bpf: test_tail_calls: Summary: 10 PASSED, 0 FAILED, [10/10 JIT'ed]
>
> Tested-by: Daniel Palmer <daniel@xxxxxxxxx>
> Co-developed-by: Greg Ungerer <gerg@xxxxxxxxxxxxxx>
> Signed-off-by: Greg Ungerer <gerg@xxxxxxxxxxxxxx>
> Signed-off-by: Kuan-Wei Chiu <visitorckw@xxxxxxxxx>
> ---
> Changes in v6:
> - Fix kconfig sort order for HAVE_EBPF_JIT.
> - Update eBPF-JIT/arch-support.txt
Thanks for the update!
Are any of the issues raised by the bpf-ci bot valid?
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds