]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
cpu,opcodes,gas: use %r0 and %r6 instead of %a and %ctf in eBPF disassembler
authorJose E. Marchesi <jose.marchesi@oracle.com>
Fri, 19 Jul 2019 13:35:43 +0000 (15:35 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Fri, 19 Jul 2019 13:35:43 +0000 (15:35 +0200)
commit231097b03afffd0c5a2b520cd999dbcbe8d64eda
tree33315b4833f4f64ec8e1a04b037f8ec848b21e92
parent1802aae8449a4d693ba1f4efb8a7917c2f20990b
cpu,opcodes,gas: use %r0 and %r6 instead of %a and %ctf in eBPF disassembler

This patch changes the eBPF CPU description to prefer the register
names %r0 and %r6 instead of %a and %ctx when disassembling.  This
matches better with the current practice, vs. cBPF.

It also updates the GAS tests in order to reflect this change.
Tested in a x86_64 host.

cpu/ChangeLog:

2019-07-19  Jose E. Marchesi  <jose.marchesi@oracle.com>

* bpf.cpu (h-gpr): when disassembling, use %r0 and %r6 instead of
%a and %ctx.

opcodes/ChangeLog:

2019-07-19  Jose E. Marchesi  <jose.marchesi@oracle.com>

* bpf-desc.c: Regenerated.

gas/ChangeLog:

2019-07-19  Jose E. Marchesi  <jose.marchesi@oracle.com>

* testsuite/gas/bpf/alu.d: Use %r6 instead of %ctx.
* testsuite/gas/bpf/lddw-be.d: Likewise.
* testsuite/gas/bpf/lddw.d: Likewise.
* testsuite/gas/bpf/alu-be.d: Likewise.
* testsuite/gas/bpf/alu32.d: Likewise.
cpu/ChangeLog
cpu/bpf.cpu
gas/ChangeLog
gas/testsuite/gas/bpf/alu-be.d
gas/testsuite/gas/bpf/alu.d
gas/testsuite/gas/bpf/alu32-be.d
gas/testsuite/gas/bpf/alu32.d
gas/testsuite/gas/bpf/lddw-be.d
gas/testsuite/gas/bpf/lddw.d
opcodes/ChangeLog
opcodes/bpf-desc.c