target/mips: Introduce mxu_translate_init() helper
commitfe35ea94838d8faba749ecfd49256f59e5fe0653
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 17 Feb 2021 20:21:17 +0000 (17 21:21 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 13 Mar 2021 22:43:00 +0000 (13 23:43 +0100)
treeceb10980e6c894e34cdc635b36f671d959017635
parentc7abe00ae9336892ae615fbc39157ba110d1716b
target/mips: Introduce mxu_translate_init() helper

Extract the MXU register initialization code from mips_tcg_init()
as a new mxu_translate_init() helper. Make it public and replace
!TARGET_MIPS64 ifdef'ry by the 'TARGET_LONG_BITS == 32' check to
elide this code at preprocessing time.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210226093111.3865906-13-f4bug@amsat.org>
target/mips/translate.c
target/mips/translate.h