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 | |
parent | 767c250310ee0494d37bf7514d24973dd50e38ea (diff) | |
download | qemu-4745b156b8412ef12af32bd474fee70c25940950.zip qemu-4745b156b8412ef12af32bd474fee70c25940950.tar.gz qemu-4745b156b8412ef12af32bd474fee70c25940950.tar.bz2 |
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')
-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 6c6848d..403cbb0 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; |