diff options
author | Richard Henderson | 2020-11-06 00:46:44 +0100 |
---|---|---|
committer | Richard Henderson | 2021-01-07 16:09:42 +0100 |
commit | e5e2e4c73926f6f3c1f5da24a350e4345d5ad232 (patch) | |
tree | ad29060323ecea1b9a0f60d5b08984f310b30e44 /tcg/ppc/tcg-target.c.inc | |
parent | tcg: Constify tcg_code_gen_epilogue (diff) | |
download | qemu-e5e2e4c73926f6f3c1f5da24a350e4345d5ad232.tar.gz qemu-e5e2e4c73926f6f3c1f5da24a350e4345d5ad232.tar.xz qemu-e5e2e4c73926f6f3c1f5da24a350e4345d5ad232.zip |
tcg: Constify TCGLabelQemuLdst.raddr
Now that all native tcg hosts support splitwx,
make this pointer const.
Reviewed-by: Joelle van Dyne <j@getutm.app>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/ppc/tcg-target.c.inc')
-rw-r--r-- | tcg/ppc/tcg-target.c.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc index 5f191c03d9..19a4a12f15 100644 --- a/tcg/ppc/tcg-target.c.inc +++ b/tcg/ppc/tcg-target.c.inc @@ -2001,8 +2001,7 @@ static void add_qemu_ldst_label(TCGContext *s, bool is_ld, TCGMemOpIdx oi, label->datahi_reg = datahi_reg; label->addrlo_reg = addrlo_reg; label->addrhi_reg = addrhi_reg; - /* TODO: Cast goes away when all hosts converted */ - label->raddr = (void *)tcg_splitwx_to_rx(raddr); + label->raddr = tcg_splitwx_to_rx(raddr); label->label_ptr[0] = lptr; } |