[PATCH 4/9] cpu: add eBPF cpu description
Jose E. Marchesi
jose.marchesi@oracle.com
Fri May 24 12:20:00 GMT 2019
Hi Alan.
On Mon, May 20, 2019 at 06:45:21PM +0200, Jose E. Marchesi wrote:
> * bpf.cpu: New file.
> * bpf.opc: Likewise.
Seen with --enable-maintainer-mode --enable-cgen-maint=yes.
cgen -s /home/alan/src/binutils-gdb/opcodes/../cgen/cgen-opc.scm -s
/home/alan/src/binutils-gdb/opcodes/../cgen -v -f -m all -a
/home/alan/src/binutils-gdb/opcodes/../cpu/bpf.cpu -OPC
/home/alan/src/binutils-gdb/opcodes/../cpu/bpf.opc -H
tmp-24376-desc.h1 -C tmp-24376-desc.c1 -O tmp-24376-opc.h1 -P
tmp-24376-opc.c1 -L tmp-24376-ibld.in1 -A tmp-24376-asm.in1 -D
tmp-24376-dis.in1
Loading cpu description /home/alan/src/binutils-gdb/opcodes/../cpu/bpf.cpu ...
machs: all
isas: all
options:
trace:
diags:
Including file /home/alan/src/binutils-gdb/opcodes/../cpu/simplify.inc ...
Processing cpu description /home/alan/src/binutils-gdb/opcodes/../cpu/bpf.cpu ...
Canonicalizing instruction semantics ...
Done canonicalization.
Analyzing instruction set ...
Performing sanity checks ...
Done analysis.
Generating bpf-desc.h ...
Generating bpf-desc.c ...
Generating bpf-opc.h ...
Generating bpf-opc.c ...
Generating bpf-ibld.in ...
Generating bpf-asm.in ...
ERROR: In procedure string-append:
ERROR: Wrong type (expecting string): #<unspecified>
No backtrace available.
Makefile:1399: recipe for target 'run-cgen' failed
Thanks for testing. You need to use a cgen featuring the following
patch, which was applied in upstream[1] master a couple of days ago:
commit 36a03558181c69b95543980b945651b974482d76
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date: Tue May 14 20:09:25 2019 +0200
cgen: partial support for 64-bit wide fields in 32-bit hosts
(Yes now cgen is in git, thanks to Andrew Burgess :))
[1] git://sourceware.org/git/cgen.git
More information about the Binutils
mailing list