aboutsummaryrefslogtreecommitdiff
path: root/sim/ChangeLog
diff options
context:
space:
mode:
authorDavid Faust <david.faust@oracle.com>2020-09-08 11:39:07 -0700
committerDavid Faust <david.faust@oracle.com>2020-09-08 11:39:07 -0700
commit3ad6c19423eedf84dfd5ea83bc03933dff8a4579 (patch)
treee76e0f17f4d59deba3bd65dabb1b19f1a0eba84c /sim/ChangeLog
parent790147a9e9ee05542c621a36669288413880c876 (diff)
downloadgdb-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 'sim/ChangeLog')
-rw-r--r--sim/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/ChangeLog b/sim/ChangeLog
index 28d78a3..c806bd6 100644
--- a/sim/ChangeLog
+++ b/sim/ChangeLog
@@ -1,3 +1,8 @@
+2020-09-08 David Faust <david.faust@oracle.com>
+
+ * bpf/sem-be.c: Regenerate.
+ * bpf/sem-le.c: Likewise.
+
2020-09-03 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf/bpf.c: Include bpf-helpers.h.