提交 c688a6eb 编写于 作者: B bellard

wrwim insn fix (Paul Robinson)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2200 c046a42c-6fe2-441c-8c8c-71466251a162
上级 27908725
......@@ -844,6 +844,15 @@ void OPPROTO op_wrpsr(void)
FORCE_RET();
}
void OPPROTO op_wrwim(void)
{
#if NWINDOWS == 32
env->wim = T0;
#else
env->wim = T0 & ((1 << NWINDOWS) - 1);
#endif
}
void OPPROTO op_rett(void)
{
helper_rett();
......
......@@ -2005,7 +2005,7 @@ static void disas_sparc_insn(DisasContext * dc)
goto illegal_insn;
}
#else
gen_op_movl_env_T0(offsetof(CPUSPARCState, wim));
gen_op_wrwim();
#endif
}
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册