summaryrefslogtreecommitdiffstats
path: root/tcg/sparc/tcg-target.c.inc
diff options
context:
space:
mode:
authorRichard Henderson2020-11-06 00:41:38 +0100
committerRichard Henderson2021-01-07 16:09:42 +0100
commitc8bc1168ade30e37c3d4bccca9ed0171befbd591 (patch)
tree6355661bdfa52289554973a2090cadfbf2fb27e5 /tcg/sparc/tcg-target.c.inc
parenttcg: Remove TCG_TARGET_SUPPORT_MIRROR (diff)
downloadqemu-c8bc1168ade30e37c3d4bccca9ed0171befbd591.tar.gz
qemu-c8bc1168ade30e37c3d4bccca9ed0171befbd591.tar.xz
qemu-c8bc1168ade30e37c3d4bccca9ed0171befbd591.zip
tcg: Constify tcg_code_gen_epilogue
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/sparc/tcg-target.c.inc')
-rw-r--r--tcg/sparc/tcg-target.c.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/tcg/sparc/tcg-target.c.inc b/tcg/sparc/tcg-target.c.inc
index 182124b96c..922ae96481 100644
--- a/tcg/sparc/tcg-target.c.inc
+++ b/tcg/sparc/tcg-target.c.inc
@@ -1039,8 +1039,7 @@ static void tcg_target_qemu_prologue(TCGContext *s)
tcg_out_nop(s);
/* Epilogue for goto_ptr. */
- /* TODO: Cast goes away when all hosts converted */
- tcg_code_gen_epilogue = (void *)tcg_splitwx_to_rx(s->code_ptr);
+ tcg_code_gen_epilogue = tcg_splitwx_to_rx(s->code_ptr);
tcg_out_arithi(s, TCG_REG_G0, TCG_REG_I7, 8, RETURN);
/* delay slot */
tcg_out_movi_imm13(s, TCG_REG_O0, 0);