diff options
author | Will Hawkins <hawkinsw@obs.cr> | 2024-02-15 15:11:44 +0100 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2024-02-15 15:11:44 +0100 |
commit | 7921285b6c2ba0bee9bb21d8e23fdea4c790c181 (patch) | |
tree | 5f9c5706cf87eefb28305986f8659d5292e37c32 /opcodes | |
parent | 664239bcaa2f7589ccdcdf02b46e327ad6cc36fe (diff) | |
download | binutils-7921285b6c2ba0bee9bb21d8e23fdea4c790c181.zip binutils-7921285b6c2ba0bee9bb21d8e23fdea4c790c181.tar.gz binutils-7921285b6c2ba0bee9bb21d8e23fdea4c790c181.tar.bz2 |
objdump, as: add callx support for BPF CPU v1
Albeit not being a currently valid BPF instruction, callx is generated
by both clang and GCC when BPF programs are compiled unoptimized.
Until now, GCC would emit it only whe using the experimental
compiler-testing cpu version xbpf, whereas clang would emit it from
v1. This patch makes GAS to accept callx also starting with cpu v1.
opcodes/ChangeLog
* bpf-opc.c: Move callx into the v1 BPF CPU variant.
gas/ChangeLog
* testsuite/gas/bpf/indcall-1-pseudoc.d: Do not select xbpf cpu
version.
* testsuite/gas/bpf/indcall-1.d: Likewise.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/bpf-opc.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 4fb2d0d..bce3bfb 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2024-02-15 Will Hawkins <hawkinsw@obs.cr> + + * bpf-opc.c: Move callx into the v1 BPF CPU variant. + 2024-02-14 Yuriy Kolerov <ykolerov@synopsys.com> * arc-tbl.h (dbnz): Use "DBNZ" class. diff --git a/opcodes/bpf-opc.c b/opcodes/bpf-opc.c index 19e0965..0524f4c 100644 --- a/opcodes/bpf-opc.c +++ b/opcodes/bpf-opc.c @@ -273,7 +273,7 @@ const struct bpf_opcode bpf_opcodes[] = {BPF_INSN_JNER, "jne%W%dr , %sr , %d16", "if%w%dr != %sr%wgoto%w%d16", BPF_V1, BPF_CODE, BPF_CLASS_JMP|BPF_CODE_JNE|BPF_SRC_X}, {BPF_INSN_CALLR, "call%W%dr", "callx%w%dr", - BPF_XBPF, BPF_CODE, BPF_CLASS_JMP|BPF_CODE_CALL|BPF_SRC_X}, + BPF_V1, BPF_CODE, BPF_CLASS_JMP|BPF_CODE_CALL|BPF_SRC_X}, {BPF_INSN_CALL, "call%W%d32", "call%w%d32", BPF_V1, BPF_CODE, BPF_CLASS_JMP|BPF_CODE_CALL|BPF_SRC_K}, {BPF_INSN_EXIT, "exit", "exit", |