sim/bpf: desCGENization of the BPF simulator
authorJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 17 Jul 2023 16:35:22 +0000 (18:35 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Fri, 21 Jul 2023 10:40:50 +0000 (12:40 +0200)
commit7bb9f0c2be98d6c8853e3a0bf992f49c5422bf3e
tree8113ef4868964ecbc001b765842a81db29922df3
parentd218e7fedc74d67837d2134120917f4ac877454c
sim/bpf: desCGENization of the BPF simulator

The BPF port in binutils has been rewritten (commit
d218e7fedc74d67837d2134120917f4ac877454c) in order to not be longer
based on CGEN.  Please see that commit log for more information.

This patch updates the BPF simulator accordingly.  The new
implementation is much simpler and it is based on the new BPF opcodes.

Tested with target bpf-unknown-none with both 64-bit little-endian
host and 32-bit little-endian host.

Note that I have not tested in a big-endian host yet.  I will do so
once this lands upstream so I can use the GCC compiler farm.
28 files changed:
sim/Makefile.in
sim/bpf/arch.c [deleted file]
sim/bpf/arch.h [deleted file]
sim/bpf/bpf-helpers.c [deleted file]
sim/bpf/bpf-helpers.def [deleted file]
sim/bpf/bpf-helpers.h [deleted file]
sim/bpf/bpf-sim.c [new file with mode: 0644]
sim/bpf/bpf-sim.h
sim/bpf/bpf.c [deleted file]
sim/bpf/cpu.c [deleted file]
sim/bpf/cpu.h [deleted file]
sim/bpf/cpuall.h [deleted file]
sim/bpf/decode-be.c [deleted file]
sim/bpf/decode-be.h [deleted file]
sim/bpf/decode-le.c [deleted file]
sim/bpf/decode-le.h [deleted file]
sim/bpf/decode.h [deleted file]
sim/bpf/defs-be.h [deleted file]
sim/bpf/defs-le.h [deleted file]
sim/bpf/eng.h [deleted file]
sim/bpf/local.mk
sim/bpf/mloop.in [deleted file]
sim/bpf/sem-be.c [deleted file]
sim/bpf/sem-le.c [deleted file]
sim/bpf/sim-if.c [deleted file]
sim/bpf/sim-main.h
sim/testsuite/bpf/alu.s
sim/testsuite/bpf/alu32.s