Re: [PATCH bpf-next] m68k, bpf: Add initial BPF JIT compiler support

From: Kuan-Wei Chiu

Date: Sun May 03 2026 - 13:52:59 EST


Hi Daniel,

On Wed, Apr 29, 2026 at 10:51:58PM +0900, Daniel Palmer wrote:
> Hi Kuan-Wei,
>
> On Wed, 29 Apr 2026 at 21:41, Kuan-Wei Chiu <visitorckw@xxxxxxxxx> wrote:
> >
> > Add a BPF JIT compiler for the m68k architecture.
> >
> > The JIT generates m68k machine code targeting m68020+ processors. It
> > currently excludes 68000/68010 and 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: 1053 PASSED, 0 FAILED, [1041/1041 JIT'ed]
> > test_bpf: test_tail_calls: Summary: 10 PASSED, 0 FAILED, [10/10 JIT'ed]
> >
> > Signed-off-by: Kuan-Wei Chiu <visitorckw@xxxxxxxxx>
>
> Cool! Which CPUs did you test on? I guess 040 that is in QEMU?

Yes.

> I'll check on real 030, 040 and 060 machines a bit later.

Thanks!
I really appreciate your help with both u-boot and the kernel.

> Since you are doing code generation for m68k now maybe you could help
> me when I resend my patches for runtime consts support? [0]

Sure, I'll take a look at the patch.
Feel free to Cc me on any future patches if you'd like me to help with
reviews.

Regards,
Kuan-Wei

>
> Thanks,
>
> Daniel
>
> 0 - https://lore.kernel.org/linux-m68k/20251127000505.2117956-1-daniel@xxxxxxxxx/