target/mips: Extract msa_translate_init() from mips_tcg_init()
commit959c5da28e7e1ae59e122f952fdbad02fb754cad
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 29 Nov 2020 20:12:53 +0000 (29 21:12 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 14 Jan 2021 16:13:53 +0000 (14 17:13 +0100)
tree043fcf0a2173ef6528f7ffde0c701d42b8b1cc6e
parente2665f314d80d7edbfe7f8275abed7e2c93c0ddc
target/mips: Extract msa_translate_init() from mips_tcg_init()

The msa_wr_d[] registers are only initialized/used by MSA.

They are declared static. We want to move them to the new
'msa_translate.c' unit in few commits, without having to
declare them global (with extern).

Extract first the logic initialization of the MSA registers
from the generic initialization. We will later move this
function along with the MSA registers to the new C unit.

Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Message-Id: <20201208003702.4088927-8-f4bug@amsat.org>
target/mips/translate.c
target/mips/translate.h