aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-04-06 11:38:56 -0700
committerRichard Henderson <richard.henderson@linaro.org>2023-04-23 08:46:45 +0100
commit4745b156b8412ef12af32bd474fee70c25940950 (patch)
tree670190fcd9ae3de46c1cd7741a265d1f61493aa8 /tcg
parent767c250310ee0494d37bf7514d24973dd50e38ea (diff)
downloadqemu-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.inc1
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;