host-utils: move checks out of divu128/divs128
commit9276a31c3484ff236a958a1e2a38beefb0eb7ebb
authorLuis Pires <luis.pires@eldorado.org.br>
Mon, 25 Oct 2021 19:11:36 +0000 (25 16:11 -0300)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Oct 2021 00:10:00 +0000 (27 17:10 -0700)
treeb686698f674067c8bf3ba8db53ee160f06b5d2ed
parent1c46937358fc27a9e446d08c877389ee84d6767d
host-utils: move checks out of divu128/divs128

In preparation for changing the divu128/divs128 implementations
to allow for quotients larger than 64 bits, move the div-by-zero
and overflow checks to the callers.

Signed-off-by: Luis Pires <luis.pires@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211025191154.350831-2-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