Re: [PATCH bpf-next] m68k, bpf: Add initial BPF JIT compiler support
From: John Paul Adrian Glaubitz
Date: Wed Apr 29 2026 - 10:06:45 EST
Hi Kuan-Wei,
On Wed, 2026-04-29 at 12:40 +0000, Kuan-Wei Chiu 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.
First of all, this is extremely cool! Thanks a lot for the work!
Secondly, since you seem to be well-versed in compiler-related stuff on
m68k, may I ask you whether you would be interested in helping to fix a
stopper bug in the LLVM M68k backend?
I have outlined the problem in [1], maybe you could help getting this fixed
as this would fully enable LLVM on M68k which means we could finally use
Rust on the architecture and maybe also build the Linux kernel on m68k
with clang.
Thanks,
Adrian
> [1] https://discourse.llvm.org/t/rfh-m68k-implementing-support-for-32-bit-relocations/90660
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913