mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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>
This commit is contained in:
parent
de2fac62d2
commit
c8bc1168ad
10 changed files with 10 additions and 18 deletions
|
@ -2301,8 +2301,7 @@ static void tcg_target_qemu_prologue(TCGContext *s)
|
|||
* Return path for goto_ptr. Set return value to 0, a-la exit_tb,
|
||||
* and fall through to the rest of the epilogue.
|
||||
*/
|
||||
/* 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_movi(s, TCG_TYPE_PTR, TCG_REG_R0, 0);
|
||||
tcg_out_epilogue(s);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue