diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2021-05-20 16:28:36 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-06-03 16:43:25 +0100 |
commit | 300137965dbacec02eb2e26b3c6763b491d1f1b2 (patch) | |
tree | 810973e576bbcf72e9f22cb6192135f11c8c9376 | |
parent | 7e435b9ea645b370aa32364fa22f8e4cd9e7d9ec (diff) | |
download | qemu-300137965dbacec02eb2e26b3c6763b491d1f1b2.zip qemu-300137965dbacec02eb2e26b3c6763b491d1f1b2.tar.gz qemu-300137965dbacec02eb2e26b3c6763b491d1f1b2.tar.bz2 |
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
-rw-r--r-- | target/arm/translate-vfp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/arm/translate-vfp.c b/target/arm/translate-vfp.c index ac5832a..791c4f5 100644 --- a/target/arm/translate-vfp.c +++ b/target/arm/translate-vfp.c @@ -691,16 +691,16 @@ static FPSysRegCheckResult fp_sysreg_checks(DisasContext *s, int regno) break; case ARM_VFP_FPSCR_NZCVQC: if (!arm_dc_feature(s, ARM_FEATURE_V8_1M)) { - return false; + return FPSysRegCheckFailed; } break; case ARM_VFP_FPCXT_S: case ARM_VFP_FPCXT_NS: if (!arm_dc_feature(s, ARM_FEATURE_V8_1M)) { - return false; + return FPSysRegCheckFailed; } if (!s->v8m_secure) { - return false; + return FPSysRegCheckFailed; } break; default: |