public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Jose E. Marchesi" <jose.marchesi@oracle.com>
To: binutils@sourceware.org
Subject: [PATCH 0/4] Add support for V3 BPF atomic instructions
Date: Thu, 11 May 2023 16:13:47 +0200	[thread overview]
Message-ID: <20230511141351.18886-1-jose.marchesi@oracle.com> (raw)

Hello people!

The BPF v3 ISA introduces a whole new set of atomic instructions.
This patch series adds support for these to the GNU binutils.

The first patch in the series is preparatory, and it changes the
generic CGEN support in opcodes to allow base instructions longer than
32-bit, which is required when you have opcodes past that position, as
it happens with these new instructions.  This is the part for which I
need an OK from a global maintainer.

Of course review of the BPF specific parts is also appreciated!
Salud!

Jose E. Marchesi (4):
  opcodes: use CGEN_INSN_LGUINT for base instructions
  cpu: add V3 BPF atomic instructions
  gas: add tests for BPF V3 atomic instructions
  gas: document V3 BPF atomic instructions in the GAS manual

 cpu/ChangeLog                        |   4 +
 cpu/bpf.cpu                          | 164 ++++++++++++++++---
 gas/ChangeLog                        |  14 +-
 gas/doc/c-bpf.texi                   |  56 ++++++-
 gas/testsuite/gas/bpf/atomic-v3-be.d |  30 ++++
 gas/testsuite/gas/bpf/atomic-v3.d    |  30 ++++
 gas/testsuite/gas/bpf/atomic-v3.s    |  22 +++
 gas/testsuite/gas/bpf/bpf.exp        |   2 +
 include/ChangeLog                    |   4 +
 include/opcode/cgen.h                |  10 +-
 opcodes/ChangeLog                    |  26 +++
 opcodes/bpf-desc.c                   | 182 +++++++++++++++++++++
 opcodes/bpf-desc.h                   |  30 +++-
 opcodes/bpf-dis.c                    |   2 +-
 opcodes/bpf-opc.c                    | 232 ++++++++++++++++++++++++++-
 opcodes/bpf-opc.h                    |  14 +-
 opcodes/cgen-dis.c                   |   2 +-
 opcodes/cgen-dis.in                  |   2 +-
 opcodes/cgen-opc.c                   |   8 +-
 opcodes/epiphany-dis.c               |   2 +-
 opcodes/fr30-dis.c                   |   2 +-
 opcodes/frv-dis.c                    |   2 +-
 opcodes/ip2k-dis.c                   |   2 +-
 opcodes/iq2000-dis.c                 |   2 +-
 opcodes/lm32-dis.c                   |   2 +-
 opcodes/m32c-dis.c                   |   2 +-
 opcodes/m32r-dis.c                   |   2 +-
 opcodes/mep-dis.c                    |   2 +-
 opcodes/mt-dis.c                     |   2 +-
 opcodes/or1k-dis.c                   |   2 +-
 opcodes/xstormy16-dis.c              |   2 +-
 31 files changed, 788 insertions(+), 70 deletions(-)
 create mode 100644 gas/testsuite/gas/bpf/atomic-v3-be.d
 create mode 100644 gas/testsuite/gas/bpf/atomic-v3.d
 create mode 100644 gas/testsuite/gas/bpf/atomic-v3.s

-- 
2.30.2


             reply	other threads:[~2023-05-11 14:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-11 14:13 Jose E. Marchesi [this message]
2023-05-11 14:13 ` [PATCH 1/4] opcodes: use CGEN_INSN_LGUINT for base instructions Jose E. Marchesi
2023-05-11 16:05   ` Jan Beulich
2023-05-17 13:03   ` Nick Clifton
2023-05-17 14:03     ` Jose E. Marchesi
2023-07-21 22:34       ` David Faust
2023-07-22  6:53         ` Jose E. Marchesi
2023-05-11 14:13 ` [PATCH 2/4] cpu: add V3 BPF atomic instructions Jose E. Marchesi
2023-05-11 14:13 ` [PATCH 3/4] gas: add tests for BPF V3 " Jose E. Marchesi
2023-05-11 14:13 ` [PATCH 4/4] gas: document V3 BPF atomic instructions in the GAS manual Jose E. Marchesi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230511141351.18886-1-jose.marchesi@oracle.com \
    --to=jose.marchesi@oracle.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).