i386/kvm: Replace abs64() with uabs64() from host-utils
commitbb89646c75e46db0074e263d74770dac6f0a29fc
authorLuis Pires <luis.pires@eldorado.org.br>
Fri, 10 Sep 2021 11:26:06 +0000 (10 08:26 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 29 Sep 2021 09:37:38 +0000 (29 19:37 +1000)
tree49e4a9cf9af93c1f6e9a3d4c53944125bf54ba7f
parentd03bba0bfbe6dcacc9d7be2b664d70fde081cc47
i386/kvm: Replace abs64() with uabs64() from host-utils

Drop abs64() and use uabs64() from host-utils, which avoids
an undefined behavior when taking abs of the most negative value.

Signed-off-by: Luis Pires <luis.pires@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20210910112624.72748-5-luis.pires@eldorado.org.br>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/i386/kvm/i8254.c