OSDN Git Service

tcg: Clear TCGLabelQemuLdst on allocation
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 6 Apr 2023 18:38:56 +0000 (11:38 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 23 Apr 2023 07:46:45 +0000 (08:46 +0100)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg-ldst.c.inc

index 6c6848d..403cbb0 100644 (file)
@@ -72,6 +72,7 @@ static inline TCGLabelQemuLdst *new_ldst_label(TCGContext *s)
 {
     TCGLabelQemuLdst *l = tcg_malloc(sizeof(*l));
 
+    memset(l, 0, sizeof(*l));
     QSIMPLEQ_INSERT_TAIL(&s->ldst_labels, l, next);
 
     return l;