aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/xive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xive.c b/hw/xive.c
index eac8acb..d69390e 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -3057,6 +3057,7 @@ static void xive_init_cpu(struct cpu_thread *c)
/* Initialize the state structure */
c->xstate = xs = local_alloc(c->chip_id, sizeof(struct xive_cpu_state), 1);
assert(xs);
+ memset(xs, 0, sizeof(struct xive_cpu_state));
xs->xive = x;
init_lock(&xs->lock);