aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-18 18:04:38 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-18 18:04:38 +0000
commit6b7432786948250bb4b1da7770e94552a5b06af3 (patch)
treeee95ffcb0185148605012b97f331512798e302d1 /target-sparc
parent7ecd8df89a50ba5d24cde45d03040002a0f1d901 (diff)
downloadqemu-6b7432786948250bb4b1da7770e94552a5b06af3.zip
qemu-6b7432786948250bb4b1da7770e94552a5b06af3.tar.gz
qemu-6b7432786948250bb4b1da7770e94552a5b06af3.tar.bz2
Sparc32/64: Fix user emulator breakage
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/helper.c b/target-sparc/helper.c
index 31b61bc..920432c 100644
--- a/target-sparc/helper.c
+++ b/target-sparc/helper.c
@@ -684,6 +684,7 @@ void cpu_reset(CPUSPARCState *env)
env->wim = 1;
#endif
env->regwptr = env->regbase + (env->cwp * 16);
+ CC_OP = CC_OP_FLAGS;
#if defined(CONFIG_USER_ONLY)
#ifdef TARGET_SPARC64
env->cleanwin = env->nwindows - 2;
@@ -697,7 +698,6 @@ void cpu_reset(CPUSPARCState *env)
#endif
env->psrs = 1;
env->psrps = 1;
- CC_OP = CC_OP_FLAGS;
#ifdef TARGET_SPARC64
env->pstate = PS_PRIV|PS_RED|PS_PEF|PS_AG;
env->hpstate = HS_PRIV;