aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/cpu_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-sparc/cpu_init.c')
-rw-r--r--target-sparc/cpu_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-sparc/cpu_init.c b/target-sparc/cpu_init.c
index 29132fb995..5c03f0b893 100644
--- a/target-sparc/cpu_init.c
+++ b/target-sparc/cpu_init.c
@@ -30,6 +30,7 @@ void cpu_state_reset(CPUSPARCState *env)
log_cpu_state(env, 0);
}
+ memset(env, 0, offsetof(CPUSPARCState, breakpoints));
tlb_flush(env, 1);
env->cwp = 0;
#ifndef TARGET_SPARC64