target/mips: Introduce disas_mt_available()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 24 Oct 2024 18:56:26 +0000 (15:56 -0300)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 3 Nov 2024 08:52:49 +0000 (05:52 -0300)
commit804607e84b3ac21bacb0a824734de44064b283f1
treef64f750c5a0d3ddb3c041fa6d64a404d98a769c7
parent09968fc96cee3d32e03b26b916bd6195f959c3d7
target/mips: Introduce disas_mt_available()

Similarly to commit 17c2c320f3c ("Introduce ase_mt_available helper"),
introduce the disas_mt_available() one which takes a DisasContext
argument to determine whether Multi-Threading is available by
checking the MT bit of the CP0_Config3 register.

Remove the then unused ASE_MT definition.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241024195447.44600-1-philmd@linaro.org>
target/mips/cpu-defs.c.inc
target/mips/mips-defs.h
target/mips/tcg/translate.c
target/mips/tcg/translate.h