aboutsummaryrefslogtreecommitdiff
path: root/tcg/aarch64
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-11-05 15:46:44 -0800
committerRichard Henderson <richard.henderson@linaro.org>2021-01-07 05:09:42 -1000
commite5e2e4c73926f6f3c1f5da24a350e4345d5ad232 (patch)
treead29060323ecea1b9a0f60d5b08984f310b30e44 /tcg/aarch64
parentc8bc1168ade30e37c3d4bccca9ed0171befbd591 (diff)
downloadqemu-e5e2e4c73926f6f3c1f5da24a350e4345d5ad232.zip
qemu-e5e2e4c73926f6f3c1f5da24a350e4345d5ad232.tar.gz
qemu-e5e2e4c73926f6f3c1f5da24a350e4345d5ad232.tar.bz2
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/aarch64')
-rw-r--r--tcg/aarch64/tcg-target.c.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/tcg/aarch64/tcg-target.c.inc b/tcg/aarch64/tcg-target.c.inc
index 0b7eb09..ab199b1 100644
--- a/tcg/aarch64/tcg-target.c.inc
+++ b/tcg/aarch64/tcg-target.c.inc
@@ -1636,8 +1636,7 @@ static void add_qemu_ldst_label(TCGContext *s, bool is_ld, TCGMemOpIdx oi,
label->type = ext;
label->datalo_reg = data_reg;
label->addrlo_reg = addr_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] = label_ptr;
}