aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-20 15:06:42 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-20 15:06:42 +0000
commit9fac3a3a7e7c7c6379179da8461894ad1249c87e (patch)
tree93eda438b3896b700dc2c533b8d53b6b45638b08 /target-sparc
parent40f8e2fa4173c3338f53531c144e891ce03aabe5 (diff)
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
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/op_helper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
index 7b28f72b81..f15cc224be 100644
--- a/target-sparc/op_helper.c
+++ b/target-sparc/op_helper.c
@@ -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);
}