Skip to content

Commit

Permalink
tcg: Clear TCGLabelQemuLdst on allocation
Browse files Browse the repository at this point in the history
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Apr 23, 2023
1 parent 767c250 commit 4745b15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tcg/tcg-ldst.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4745b15

Please sign in to comment.