target/mips: Introduce ase_mt_available() helper
commit17c2c320f3c216f80c2fad1f0fa9358c2ffbd0d3
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 2 Dec 2020 17:49:00 +0000 (2 18:49 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 13 Dec 2020 19:26:02 +0000 (13 20:26 +0100)
treecd5bd83fc8738fae872942478003ac6baf5e7f4c
parent585c80ad7bb1bfd62721d03b62424fb1a786f659
target/mips: Introduce ase_mt_available() helper

Instead of accessing CP0_Config3 directly and checking
the 'Multi-Threading Present' bit, introduce an helper
to simplify code review.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201204222622.2743175-3-f4bug@amsat.org>
hw/mips/cps.c
target/mips/cp0_helper.c
target/mips/cpu.c
target/mips/cpu.h
target/mips/helper.c
target/mips/translate.c