summaryrefslogtreecommitdiffstats
path: root/include/tcg/tcg.h
diff options
context:
space:
mode:
authorRichard Henderson2020-10-30 23:55:28 +0100
committerRichard Henderson2021-01-07 16:09:41 +0100
commitffd0e507369cd65de5a07b324a2fab03678aeae1 (patch)
tree892fa9cde3a05b2887380562a5dae3ac12167cc2 /include/tcg/tcg.h
parenttcg: Introduce tcg_splitwx_to_{rx,rw} (diff)
downloadqemu-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 'include/tcg/tcg.h')
-rw-r--r--include/tcg/tcg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h
index b769e868bc..e9af279738 100644
--- a/include/tcg/tcg.h
+++ b/include/tcg/tcg.h
@@ -261,7 +261,7 @@ struct TCGLabel {
unsigned refs : 16;
union {
uintptr_t value;
- tcg_insn_unit *value_ptr;
+ const tcg_insn_unit *value_ptr;
} u;
QSIMPLEQ_HEAD(, TCGRelocation) relocs;
QSIMPLEQ_ENTRY(TCGLabel) next;