diff options
author | David Faust <david.faust@oracle.com> | 2020-09-08 11:39:07 -0700 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2020-09-08 11:39:07 -0700 |
commit | 3ad6c19423eedf84dfd5ea83bc03933dff8a4579 (patch) | |
tree | e76e0f17f4d59deba3bd65dabb1b19f1a0eba84c /cpu/ChangeLog | |
parent | 790147a9e9ee05542c621a36669288413880c876 (diff) | |
download | gdb-3ad6c19423eedf84dfd5ea83bc03933dff8a4579.zip gdb-3ad6c19423eedf84dfd5ea83bc03933dff8a4579.tar.gz gdb-3ad6c19423eedf84dfd5ea83bc03933dff8a4579.tar.bz2 |
bpf: simulator: correct div, mod insn semantics
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.
Diffstat (limited to 'cpu/ChangeLog')
-rw-r--r-- | cpu/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu/ChangeLog b/cpu/ChangeLog index 6609a05..29e2512 100644 --- a/cpu/ChangeLog +++ b/cpu/ChangeLog @@ -1,3 +1,8 @@ +2020-09-08 David Faust <david.faust@oracle.com> + + * bpf.cpu (define-alu-instructions): Correct semantic operators + for div, mod to unsigned versions. + 2020-09-01 Alan Modra <amodra@gmail.com> * mep-core.cpu (f-8s8a2, f-12s4a2, f-17s16a2): Multiply signed |