aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/translate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index bcc810b208..fe37c0748f 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -840,6 +840,7 @@ CPUSPARCState *cpu_sparc_init(void)
env->wim = 1;
env->regwptr = env->regbase + (env->cwp * 16);
env->user_mode_only = 1;
+ cpu_single_env = env;
return (env);
}