aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-07-18 21:14:09 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-07-18 21:14:09 +0000
commit5ef54116ea1c576995f0074b71400bf7bda08cf1 (patch)
tree5be5c3104d58828d73aac1fcef9f2bf8b62f0121 /target-sparc
parent725cb90bf7e2487fe5aa5621cc10afe6d169e310 (diff)
Sparc64 user emulator fixes (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2063 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/translate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index 4a8ad7061b..a522d778be 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -2731,6 +2731,10 @@ void cpu_reset(CPUSPARCState *env)
env->regwptr = env->regbase + (env->cwp * 16);
#if defined(CONFIG_USER_ONLY)
env->user_mode_only = 1;
+#ifdef TARGET_SPARC64
+ env->cleanwin = NWINDOWS - 1;
+ env->cansave = NWINDOWS - 1;
+#endif
#else
env->psrs = 1;
env->psrps = 1;