tcg: Reset data_gen_ptr correctly
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 16 Oct 2024 17:31:05 +0000 (17:31 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 22 Oct 2024 18:57:25 +0000 (11:57 -0700)
commita7cfd751fb269de4a93bf1658cb13911c7ac77cc
tree4d16ecd52686bc8f1616323320a091c8a2760355
parent6f625ce2f21d6a1243065d236298277c56f972d5
tcg: Reset data_gen_ptr correctly

This pointer needs to be reset after overflow just like
code_buf and code_ptr.

Cc: qemu-stable@nongnu.org
Fixes: 57a269469db ("tcg: Infrastructure for managing constant pools")
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg.c