target/mips: Introduce ase_msa_available() helper
commit25a1362875874936c185eba72203de6e9581251e
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 29 Nov 2020 22:22:20 +0000 (29 23:22 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 14 Jan 2021 16:13:53 +0000 (14 17:13 +0100)
treeca90a0ba5d60f525cb49d956436b567e94b81bd2
parentd7efb69382cde8f29cd37df321b399542db9fdd2
target/mips: Introduce ase_msa_available() helper

Instead of accessing CP0_Config3 directly and checking
the 'MSA Present' bit, introduce an explicit helper,
making the code easier to read.

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-2-f4bug@amsat.org>
target/mips/cpu.c
target/mips/cpu.h
target/mips/kvm.c
target/mips/translate.c