binutils-gdb/cpu
Jose E. Marchesi 78c1c35437 cpu,opcodes: add instruction semantics to bpf.cpu and minor fixes
This patch adds semantic RTL descriptions to the eBPF instructions
defined in cpu/bpf.cpu.  It also contains a couple of minor
improvements.

Tested in bpf-unknown-none targets.
No regressions.

cpu/ChangeLog:

2020-05-28  Jose E. Marchesi  <jose.marchesi@oracle.com>
	    David Faust <david.faust@oracle.com>

	* bpf.cpu (define-alu-insn-un): Add definitions of semantics.
	(define-alu-insn-mov): Likewise.
	(daib): Likewise.
	(define-alu-instructions): Likewise.
	(define-endian-insn): Likewise.
	(define-lddw): Likewise.
	(dlabs): Likewise.
	(dlind): Likewise.
	(dxli): Likewise.
	(dxsi): Likewise.
	(dsti): Likewise.
	(define-ldstx-insns): Likewise.
	(define-st-insns): Likewise.
	(define-cond-jump-insn): Likewise.
	(dcji): Likewise.
	(define-condjump-insns): Likewise.
	(define-call-insn): Likewise.
	(ja): Likewise.
	("exit"): Likewise.
	(define-atomic-insns): Likewise.
	(sem-exchange-and-add): New macro.
	* bpf.cpu ("brkpt"): New instruction.
	(bpfbf): Set word-bitsize to 32 and insn-endian big.
	(h-gpr): Prefer r0 to `a' and r6 to `ctx'.
	(h-pc): Expand definition.
	* bpf.opc (bpf_print_insn): Set endian_code to BIG.

opcodes/ChangeLog:

2020-05-28  Jose E. Marchesi  <jose.marchesi@oracle.com>
	    David Faust <david.faust@oracle.com>

	* bpf-desc.c: Regenerate.
	* bpf-opc.h: Likewise.
	* bpf-opc.c: Likewise.
	* bpf-dis.c: Likewise.
2020-05-28 21:52:31 +02:00
..
ChangeLog cpu,opcodes: add instruction semantics to bpf.cpu and minor fixes 2020-05-28 21:52:31 +02:00
bpf.cpu cpu,opcodes: add instruction semantics to bpf.cpu and minor fixes 2020-05-28 21:52:31 +02:00
bpf.opc cpu,opcodes: add instruction semantics to bpf.cpu and minor fixes 2020-05-28 21:52:31 +02:00
cris.cpu update copyright dates 2009-09-02 07:25:43 +00:00
epiphany.cpu Remove more shifts for sign/zero extension 2019-12-11 21:14:19 +10:30
epiphany.opc epiphany/disassembler: Improve alignment of output. 2016-02-02 11:09:17 +00:00
fr30.cpu ubsan: fr30: left shift of negative value 2020-01-13 12:12:05 +10:30
fr30.opc Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
frv.cpu ubsan: frv: left shift of negative value 2020-02-01 23:23:18 +10:30
frv.opc opcodes error messages 2018-03-03 11:34:26 +10:30
ip2k.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
ip2k.opc Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
iq10.cpu update copyright dates 2009-09-02 07:25:43 +00:00
iq2000.cpu ubsan: iq2000: left shift of negative value 2019-12-23 18:04:12 +10:30
iq2000.opc update copyright dates 2009-09-02 07:25:43 +00:00
iq2000m.cpu update copyright dates 2009-09-02 07:25:43 +00:00
lm32.cpu Remove more shifts for sign/zero extension 2019-12-11 21:14:19 +10:30
lm32.opc update copyright dates 2009-09-02 07:25:43 +00:00
m32c.cpu ubsan: m32c: left shift of negative value 2020-02-03 15:59:08 +10:30
m32c.opc * m32c.opc (parse_signed16): Fix typo. 2010-01-02 18:37:59 +00:00
m32r.cpu ubsan: m32r: left shift of negative value 2020-01-04 19:20:33 +10:30
m32r.opc * m32r.cpu (HASH-PREFIX): Delete. 2010-02-12 04:38:21 +00:00
mep-avc.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep-avc2.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep-c5.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep-core.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep-default.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep-ext-cop.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep-fmax.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep-h1.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep-ivc2.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep-rhcop.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep-sample-ucidsp.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep.cpu Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00
mep.opc Replace "if (x) free (x)" with "free (x)", opcodes 2020-05-21 10:45:33 +09:30
mt.cpu update copyright dates 2009-09-02 07:25:43 +00:00
mt.opc cpu/ 2012-02-27 06:57:57 +00:00
or1k.cpu or1k: Remove 64-bit support, it's not used and it breaks 32-bit hosts 2020-05-19 20:40:27 +09:00
or1k.opc cpu/or1k: Add support for orfp64a32 spec 2019-06-13 06:16:18 +09:00
or1kcommon.cpu or1k: Remove 64-bit support, it's not used and it breaks 32-bit hosts 2020-05-19 20:40:27 +09:00
or1korbis.cpu ubsan: or1k: left shift of negative value 2019-12-20 17:57:58 +10:30
or1korfpx.cpu or1k: Remove 64-bit support, it's not used and it breaks 32-bit hosts 2020-05-19 20:40:27 +09:00
sh.cpu update copyright dates 2009-09-02 07:25:43 +00:00
sh.opc update copyright dates 2009-09-02 07:25:43 +00:00
sh64-compact.cpu update copyright dates 2009-09-02 07:25:43 +00:00
sh64-media.cpu update copyright dates 2009-09-02 07:25:43 +00:00
simplify.inc * cpu/simplify.inc (*): One line doc strings don't need \n. 2009-07-16 17:53:25 +00:00
xc16x.cpu * m32r.cpu (HASH-PREFIX): Delete. 2010-02-12 04:38:21 +00:00
xc16x.opc * m32r.cpu (HASH-PREFIX): Delete. 2010-02-12 04:38:21 +00:00
xstormy16.cpu ubsan: xstormy16: left shift of negative value 2019-12-16 17:35:13 +10:30
xstormy16.opc Move cpu files from cgen/cpu to top level cpu directory. 2011-08-22 15:25:07 +00:00