diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2024-01-29 19:22:41 +0100 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2024-01-29 19:22:41 +0100 |
commit | 0c45feb159a14ca4cb50cfbf45eacaf5a6cecf2b (patch) | |
tree | dc9870f232ec68a88d4d315b133f2bcbe619d555 /gas/doc | |
parent | f3911963c51c11c70007287c91948328f1eea1db (diff) | |
download | gdb-0c45feb159a14ca4cb50cfbf45eacaf5a6cecf2b.zip gdb-0c45feb159a14ca4cb50cfbf45eacaf5a6cecf2b.tar.gz gdb-0c45feb159a14ca4cb50cfbf45eacaf5a6cecf2b.tar.bz2 |
bpf: there is no ldinddw nor ldabsdw instructions
There are no legacy ldind nor ldabs BPF instructions with BPF_SIZE_DW.
For some reason we were (incorrectly) supporting these. This patch
updates the opcodes so the instructions get removed and modifies the
GAS manual and testsuite accordingly.
See discussion at
https://lore.kernel.org/bpf/110aad7a-f8a3-46ed-9fda-2f8ee54dcb89@linux.dev
Tested in bpf-uknonwn-none target, x86-64-linux-gnu host.
include/ChangeLog:
2024-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
* opcode/bpf.h (enum bpf_insn_id): Remove BPF_INSN_LDINDDW and
BPF_INSN_LDABSDW instructions.
opcodes/ChangeLog:
2024-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-opc.c (bpf_opcodes): Remove BPF_INSN_LDINDDW and
BPF_INSN_LDABSDW instructions.
gas/ChangeLog:
2024-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
* doc/c-bpf.texi (BPF Instructions): There is no indirect 64-bit
load instruction.
(BPF Instructions): There is no absolute 64-bit load instruction.
* testsuite/gas/bpf/mem.s: Update test accordingly.
* testsuite/gas/bpf/mem-be-pseudoc.d: Likewise.
* testsuite/gas/bpf/mem-be.d: Likewise.
* testsuite/gas/bpf/mem-pseudoc.d: Likewise.
* testsuite/gas/bpf/mem-pseudoc.s: Likewise.
* testsuite/gas/bpf/mem.d: Likewise.
* testsuite/gas/bpf/mem.s: Likewise.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/c-bpf.texi | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gas/doc/c-bpf.texi b/gas/doc/c-bpf.texi index db8cd11..d99538f 100644 --- a/gas/doc/c-bpf.texi +++ b/gas/doc/c-bpf.texi @@ -451,10 +451,6 @@ tree for more information. Absolute loads: @table @code -@item ldabsdw imm32 -@itemx r0 = *(u64 *) skb[imm32] -Absolute 64-bit load. - @item ldabsw imm32 @itemx r0 = *(u32 *) skb[imm32] Absolute 32-bit load. @@ -471,10 +467,6 @@ Absolute 8-bit load. Indirect loads: @table @code -@item ldinddw rs, imm32 -@itemx r0 = *(u64 *) skb[rs + imm32] -Indirect 64-bit load. - @item ldindw rs, imm32 @itemx r0 = *(u32 *) skb[rs + imm32] Indirect 32-bit load. |