]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - opcodes/disassemble.h
opcodes: add support for eBPF
authorJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 23 May 2019 17:04:36 +0000 (19:04 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 23 May 2019 17:33:56 +0000 (19:33 +0200)
commit79472b45328232b083e897a511d4160a6dde0463
treeff50820cf858918ae1115a0c6e6829633de3fffc
parentea195bb04cc5c964126aeff0f87d7161a03ca926
opcodes: add support for eBPF

This patch adds support for the Linux kernel eBPF architecture to the
opcodes.  The port is based on CGEN.

opcodes/ChangeLog:

2019-05-23  Jose E. Marchesi  <jose.marchesi@oracle.com>

* configure.ac (SHARED_DEPENDENCIES): Add case for bfd_bpf_arch.
* configure: Regenerated.
* Makefile.am: Add rules for the files generated from cpu/bpf.cpu
and cpu/bpf.opc.
(HFILES): Add bpf-desc.h and bpf-opc.h.
(TARGET_LIBOPCODES_CFILES): Add bpf-asm.c, bpf-desc.c, bpf-dis.c,
bpf-ibld.c and bpf-opc.c.
(BPF_DEPS): Define.
* Makefile.in: Regenerated.
* disassemble.c (ARCH_bpf): Define.
(disassembler): Add case for bfd_arch_bpf.
(disassemble_init_for_target): Likewise.
(enum epbf_isa_attr): Define.
* disassemble.h: extern print_insn_bpf.
* bpf-asm.c: Generated.
* bpf-opc.h: Likewise.
* bpf-opc.c: Likewise.
* bpf-ibld.c: Likewise.
* bpf-dis.c: Likewise.
* bpf-desc.h: Likewise.
* bpf-desc.c: Likewise.
14 files changed:
opcodes/ChangeLog
opcodes/Makefile.am
opcodes/Makefile.in
opcodes/bpf-asm.c [new file with mode: 0644]
opcodes/bpf-desc.c [new file with mode: 0644]
opcodes/bpf-desc.h [new file with mode: 0644]
opcodes/bpf-dis.c [new file with mode: 0644]
opcodes/bpf-ibld.c [new file with mode: 0644]
opcodes/bpf-opc.c [new file with mode: 0644]
opcodes/bpf-opc.h [new file with mode: 0644]
opcodes/configure
opcodes/configure.ac
opcodes/disassemble.c
opcodes/disassemble.h