aboutsummaryrefslogtreecommitdiff
path: root/target/arm/tcg/translate-mve.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-02-25 10:48:08 -1000
committerRichard Henderson <richard.henderson@linaro.org>2023-03-13 06:44:38 -0700
commit6ce21abd40b11cb6e2e016841871f6e3f5221f92 (patch)
treef18fd834389af2552e57704b91d2b60a11697356 /target/arm/tcg/translate-mve.c
parentab9ced73fa6679791c61d45768414cec578b6053 (diff)
downloadqemu-6ce21abd40b11cb6e2e016841871f6e3f5221f92.zip
qemu-6ce21abd40b11cb6e2e016841871f6e3f5221f92.tar.gz
qemu-6ce21abd40b11cb6e2e016841871f6e3f5221f92.tar.bz2
target/arm: Improve arm_rmode_to_sf
Use proper enumeration types for input and output. Use a const array to perform the mapping, with an assert that the input is valid. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/arm/tcg/translate-mve.c')
-rw-r--r--target/arm/tcg/translate-mve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/tcg/translate-mve.c b/target/arm/tcg/translate-mve.c
index 798b4fd..9744bf3 100644
--- a/target/arm/tcg/translate-mve.c
+++ b/target/arm/tcg/translate-mve.c
@@ -588,7 +588,7 @@ DO_VCVT(VCVT_FS, vcvt_hs, vcvt_fs)
DO_VCVT(VCVT_FU, vcvt_hu, vcvt_fu)
static bool do_vcvt_rmode(DisasContext *s, arg_1op *a,
- enum arm_fprounding rmode, bool u)
+ ARMFPRounding rmode, bool u)
{
/*
* Handle VCVT fp to int with specified rounding mode.