diff options
author | Richard Henderson | 2020-10-30 23:55:28 +0100 |
---|---|---|
committer | Richard Henderson | 2021-01-07 16:09:41 +0100 |
commit | ffd0e507369cd65de5a07b324a2fab03678aeae1 (patch) | |
tree | 892fa9cde3a05b2887380562a5dae3ac12167cc2 /tcg/tcg.c | |
parent | tcg: Introduce tcg_splitwx_to_{rx,rw} (diff) | |
download | qemu-ffd0e507369cd65de5a07b324a2fab03678aeae1.tar.gz qemu-ffd0e507369cd65de5a07b324a2fab03678aeae1.tar.xz qemu-ffd0e507369cd65de5a07b324a2fab03678aeae1.zip |
tcg: Adjust TCGLabel for const
Change TCGLabel.u.value_ptr to const, and initialize it with
tcg_splitwx_to_rx. Propagate const through tcg/host/ only
as far as needed to avoid errors from the value_ptr change.
Reviewed-by: Joelle van Dyne <j@getutm.app>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r-- | tcg/tcg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -306,7 +306,7 @@ static void tcg_out_label(TCGContext *s, TCGLabel *l, tcg_insn_unit *ptr) { tcg_debug_assert(!l->has_value); l->has_value = 1; - l->u.value_ptr = ptr; + l->u.value_ptr = tcg_splitwx_to_rx(ptr); } TCGLabel *gen_new_label(void) |