[PATCH] bpf: add xBPF ISA

Jose E. Marchesi jose.marchesi@oracle.com
Wed Aug 26 14:51:23 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"
>

Oops we crossed emails, thanks for spotting that :)
I just fixed it in both master and 2.35.

Thanks!


More information about the Binutils mailing list