mirror of https://github.com/xemu-project/xemu.git
target/arm: Handle FPROUNDING_ODD in arm_rmode_to_sf
While this enumerator has been present since the first commit, it isn't ever used. The first actual use of round-to-odd came with SVE, which currently uses float_round_to_odd instead of the arm-specific enumerator. Amusingly, the comment about unhandled TIEAWAY has been out of date since the initial commit of translate-a64.c. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
0b29090a68
commit
ab9ced73fa
|
@ -1111,10 +1111,8 @@ int arm_rmode_to_sf(int rmode)
|
||||||
rmode = float_round_ties_away;
|
rmode = float_round_ties_away;
|
||||||
break;
|
break;
|
||||||
case FPROUNDING_ODD:
|
case FPROUNDING_ODD:
|
||||||
/* FIXME: add support for TIEAWAY and ODD */
|
rmode = float_round_to_odd;
|
||||||
qemu_log_mask(LOG_UNIMP, "arm: unimplemented rounding mode: %d\n",
|
break;
|
||||||
rmode);
|
|
||||||
/* fall through for now */
|
|
||||||
case FPROUNDING_TIEEVEN:
|
case FPROUNDING_TIEEVEN:
|
||||||
default:
|
default:
|
||||||
rmode = float_round_nearest_even;
|
rmode = float_round_nearest_even;
|
||||||
|
|
Loading…
Reference in New Issue