target/arm: Improve arm_rmode_to_sf
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 25 Feb 2023 20:48:08 +0000 (10:48 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 13 Mar 2023 13:44:38 +0000 (06:44 -0700)
commit6ce21abd40b11cb6e2e016841871f6e3f5221f92
treef18fd834389af2552e57704b91d2b60a11697356
parentab9ced73fa6679791c61d45768414cec578b6053
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>
target/arm/internals.h
target/arm/tcg/translate-mve.c
target/arm/vfp_helper.c