Commit 9fac3a3a7e7c7c6379179da8461894ad1249c87e
1 parent
40f8e2fa
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
Showing
1 changed file
with
4 additions
and
4 deletions
target-sparc/op_helper.c
... | ... | @@ -2622,12 +2622,12 @@ void helper_retry(void) |
2622 | 2622 | void cpu_set_cwp(CPUState *env1, int new_cwp) |
2623 | 2623 | { |
2624 | 2624 | /* put the modified wrap registers at their proper location */ |
2625 | - if (env1->cwp == env->nwindows - 1) | |
2626 | - memcpy32(env1->regbase, env1->regbase + env->nwindows * 16); | |
2625 | + if (env1->cwp == env1->nwindows - 1) | |
2626 | + memcpy32(env1->regbase, env1->regbase + env1->nwindows * 16); | |
2627 | 2627 | env1->cwp = new_cwp; |
2628 | 2628 | /* put the wrap registers at their temporary location */ |
2629 | - if (new_cwp == env->nwindows - 1) | |
2630 | - memcpy32(env1->regbase + env->nwindows * 16, env1->regbase); | |
2629 | + if (new_cwp == env1->nwindows - 1) | |
2630 | + memcpy32(env1->regbase + env1->nwindows * 16, env1->regbase); | |
2631 | 2631 | env1->regwptr = env1->regbase + (new_cwp * 16); |
2632 | 2632 | } |
2633 | 2633 | ... | ... |