diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-04-06 11:38:56 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-04-23 08:46:45 +0100 |
commit | 4745b156b8412ef12af32bd474fee70c25940950 (patch) | |
tree | 670190fcd9ae3de46c1cd7741a265d1f61493aa8 /tcg/tcg-ldst.c.inc | |
parent | 767c250310ee0494d37bf7514d24973dd50e38ea (diff) |
tcg: Clear TCGLabelQemuLdst on allocation
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg-ldst.c.inc')
-rw-r--r-- | tcg/tcg-ldst.c.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tcg/tcg-ldst.c.inc b/tcg/tcg-ldst.c.inc index 6c6848d034..403cbb0f06 100644 --- a/tcg/tcg-ldst.c.inc +++ b/tcg/tcg-ldst.c.inc @@ -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; |