target/arm: Create gen_set_rmode, gen_restore_rmode
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 25 Feb 2023 21:06:53 +0000 (11:06 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 13 Mar 2023 13:44:38 +0000 (06:44 -0700)
commit8d1b02a6a18552e16df0d991e3a4cc0054c6b8f8
tree0cbabdc1889c2df0152ad3f5e9fefde2ddda7c27
parent97584f2bc828a1924a020d3bb31241ff1bd7654e
target/arm: Create gen_set_rmode, gen_restore_rmode

Split out common subroutines for handing rounding mode
changes during translation.  Use tcg_constant_i32 and
tcg_temp_new_i32 instead of tcg_const_i32.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/tcg/translate-a64.c
target/arm/tcg/translate-sve.c
target/arm/tcg/translate-vfp.c
target/arm/tcg/translate.h