[PATCH] bpf: simulator: correct div, mod insn semantics

Jose E. Marchesi jose.marchesi@oracle.com
Wed Sep 9 06:21:41 GMT 2020


Hi David.

> 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.

The binutils part is OK.
You already got an OK for GDB/sim.

Thanks.


More information about the Gdb-patches mailing list