mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-02 23:04:09 +08:00
3ad6c19423
The div and mod eBPF instructions are unsigned, but the semantic specification for the simulator incorrectly used signed operators. Correct them to unsigned versions, and correct the ALU tests in the simulator (which incorrectly assumed signed semantics). Tested in bpf-unknown-none. cpu/ChangeLog: 2020-09-08 David Faust <david.faust@oracle.com> * bpf.cpu (define-alu-instructions): Correct semantic operators for div, mod to unsigned versions. sim/ChangeLog: 2020-09-08 David Faust <david.faust@oracle.com> * bpf/sem-be.c: Regenerate. * bpf/sem-le.c: Likewise. sim/testsuite/ChangeLog: 2020-09-08 David Faust <david.faust@oracle.com> * sim/bpf/alu.s: Correct div and mod tests. * sim/bpf/alu32.s: Likewise. |
||
---|---|---|
.. | ||
aclocal.m4 | ||
arch.c | ||
arch.h | ||
bpf-helpers.c | ||
bpf-helpers.def | ||
bpf-helpers.h | ||
bpf-sim.h | ||
bpf.c | ||
config.in | ||
configure | ||
configure.ac | ||
cpu.c | ||
cpu.h | ||
cpuall.h | ||
decode-be.c | ||
decode-be.h | ||
decode-le.c | ||
decode-le.h | ||
decode.h | ||
defs-be.h | ||
defs-le.h | ||
eng.h | ||
Makefile.in | ||
mloop.in | ||
sem-be.c | ||
sem-le.c | ||
sim-if.c | ||
sim-main.h | ||
traps.c |