diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-11-29 23:22:20 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-01-14 17:13:53 +0100 |
commit | 25a1362875874936c185eba72203de6e9581251e (patch) | |
tree | ca90a0ba5d60f525cb49d956436b567e94b81bd2 /target/mips/cpu.c | |
parent | d7efb69382cde8f29cd37df321b399542db9fdd2 (diff) |
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>
Diffstat (limited to 'target/mips/cpu.c')
-rw-r--r-- | target/mips/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/mips/cpu.c b/target/mips/cpu.c index f3bf0466a4..0643a5784c 100644 --- a/target/mips/cpu.c +++ b/target/mips/cpu.c @@ -533,7 +533,7 @@ static void mips_cpu_reset(DeviceState *dev) } /* MSA */ - if (env->CP0_Config3 & (1 << CP0C3_MSAP)) { + if (ase_msa_available(env)) { msa_reset(env); } |