]> xenbits.xensource.com Git - qemu-xen.git/commit
tcg/aarch64: Emit BTI insns at jump landing pads
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 16 Aug 2023 02:31:38 +0000 (19:31 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 16 Sep 2023 14:57:16 +0000 (14:57 +0000)
commit5826a0dbf097c50c5b6db71054cffed972c7e9e6
treeb3462c19f84c07e238f08e19cff65b0a8fc004d8
parent095859e5d97284dd3ea666c337845dc63f6ba5e7
tcg/aarch64: Emit BTI insns at jump landing pads

The prologue is entered via "call"; the epilogue, each tb,
and each goto_tb continuation point are all reached via "jump".

As tcg_out_goto_long is only used by tcg_out_exit_tb, merge
the two functions.  Change the indirect register used to
TCG_REG_TMP1, aka X17, so that the BTI condition created
is "jump" instead of "jump or call".

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/aarch64/tcg-target.c.inc