diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-10-30 15:55:28 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-01-07 05:09:41 -1000 |
commit | ffd0e507369cd65de5a07b324a2fab03678aeae1 (patch) | |
tree | 892fa9cde3a05b2887380562a5dae3ac12167cc2 /tcg/aarch64 | |
parent | db0c51a380394b21b33a6294367aff03ab06b286 (diff) | |
download | qemu-ffd0e507369cd65de5a07b324a2fab03678aeae1.zip qemu-ffd0e507369cd65de5a07b324a2fab03678aeae1.tar.gz qemu-ffd0e507369cd65de5a07b324a2fab03678aeae1.tar.bz2 |
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/aarch64')
-rw-r--r-- | tcg/aarch64/tcg-target.c.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/aarch64/tcg-target.c.inc b/tcg/aarch64/tcg-target.c.inc index 76f8ae4..96dc9f4 100644 --- a/tcg/aarch64/tcg-target.c.inc +++ b/tcg/aarch64/tcg-target.c.inc @@ -1306,7 +1306,7 @@ static void tcg_out_cmp(TCGContext *s, TCGType ext, TCGReg a, } } -static inline void tcg_out_goto(TCGContext *s, tcg_insn_unit *target) +static void tcg_out_goto(TCGContext *s, const tcg_insn_unit *target) { ptrdiff_t offset = target - s->code_ptr; tcg_debug_assert(offset == sextract64(offset, 0, 26)); |