提交 9fac3a3a 编写于 作者: B blueswir1

Fix boot problem on i386 host introduced in r4690

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4758 c046a42c-6fe2-441c-8c8c-71466251a162
上级 40f8e2fa
......@@ -2622,12 +2622,12 @@ void helper_retry(void)
void cpu_set_cwp(CPUState *env1, int new_cwp)
{
/* put the modified wrap registers at their proper location */
if (env1->cwp == env->nwindows - 1)
memcpy32(env1->regbase, env1->regbase + env->nwindows * 16);
if (env1->cwp == env1->nwindows - 1)
memcpy32(env1->regbase, env1->regbase + env1->nwindows * 16);
env1->cwp = new_cwp;
/* put the wrap registers at their temporary location */
if (new_cwp == env->nwindows - 1)
memcpy32(env1->regbase + env->nwindows * 16, env1->regbase);
if (new_cwp == env1->nwindows - 1)
memcpy32(env1->regbase + env1->nwindows * 16, env1->regbase);
env1->regwptr = env1->regbase + (new_cwp * 16);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册