OSDN Git Service

target/arm: Fix return values in fp_sysreg_checks()
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 20 May 2021 15:28:36 +0000 (16:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Jun 2021 15:43:25 +0000 (16:43 +0100)
commit300137965dbacec02eb2e26b3c6763b491d1f1b2
tree810973e576bbcf72e9f22cb6192135f11c8c9376
parent7e435b9ea645b370aa32364fa22f8e4cd9e7d9ec
target/arm: Fix return values in fp_sysreg_checks()

The fp_sysreg_checks() function is supposed to be returning an
FPSysRegCheckResult, which is an enum with three possible values.
However, three places in the function "return false" (a hangover from
a previous iteration of the design where the function just returned a
bool).  Make these return FPSysRegCheckFailed instead (for no
functional change, since both false and FPSysRegCheckFailed are
zero).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210520152840.24453-6-peter.maydell@linaro.org
target/arm/translate-vfp.c