[PATCH] bpf: add xBPF ISA

Nick Clifton nickc@redhat.com
Wed Aug 26 13:07:11 GMT 2020


Hi David,

> This patch adds support for xBPF, another ISA targetting the BPF
> virtual architecture. For now, the primary difference between eBPF
> and xBPF is that xBPF supports indirect calls through the
> 'call %reg' form of the call instruction.

Approved - please apply, but with one small addition:
You missed out the "hack" in opcodes/disassemble.c for when building
with all architectures enabled.  Ie you need to patch:

   # ifdef ARCH_m32c
   enum epbf_isa_attr
   {
  - ISA_EBPFLE, ISA_EBPFBE, ISA_EBPFMAX
  + ISA_EBPFLE, ISA_EBPFBE, ISA_XBPFLE, ISA_XBPFBE, ISA_EBPFMAX
   };
   # else
   #  include "bpf-desc.h"

Cheers
  Nick



More information about the Binutils mailing list