host-utils: add 128-bit quotient support to divu128/divs128
commit40f3e79a862554553811d0681c05e00a4705e91c
authorLuis Pires <luis.pires@eldorado.org.br>
Mon, 25 Oct 2021 19:11:38 +0000 (25 16:11 -0300)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Oct 2021 00:10:00 +0000 (27 17:10 -0700)
tree4fc15b4a02f1d6354a28486c6f91d9fc1dd0f1aa
parent8ac2d6c526d9ea0c89c8aa7046ca56e1b1b9d130
host-utils: add 128-bit quotient support to divu128/divs128

These will be used to implement new decimal floating point
instructions from Power ISA 3.1.

The remainder is now returned directly by divu128/divs128,
freeing up phigh to receive the high 64 bits of the quotient.

Signed-off-by: Luis Pires <luis.pires@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211025191154.350831-4-luis.pires@eldorado.org.br>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/hw/clock.h
include/qemu/host-utils.h
target/ppc/int_helper.c
util/host-utils.c