提交 6f0af304 编写于 作者: P Petar Jovanovic 提交者: Aurelien Jarno

target-mips: enable access to DSP ASE if implemented

compute_hflags() will reset DSP h-flags, so MX bit should be initially set
for usermode in cpu_state_reset() if DSP ASE is implemented.
This change will bring back user-mode support for DSP ASE, since one of the
recent changes broke it.
Signed-off-by: NPetar Jovanovic <petarj@mips.com>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 f54c35d1
......@@ -15978,10 +15978,8 @@ void cpu_state_reset(CPUMIPSState *env)
if (env->CP0_Config1 & (1 << CP0C1_FP)) {
env->CP0_Status |= (1 << CP0St_CU1);
}
if (env->cpu_model->insn_flags & ASE_DSPR2) {
env->hflags |= MIPS_HFLAG_DSP | MIPS_HFLAG_DSPR2;
} else if (env->cpu_model->insn_flags & ASE_DSP) {
env->hflags |= MIPS_HFLAG_DSP;
if (env->CP0_Config3 & (1 << CP0C3_DSPP)) {
env->CP0_Status |= (1 << CP0St_MX);
}
#else
if (env->hflags & MIPS_HFLAG_BMASK) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册