target/arm: Use set/clear_helper_retaddr in SVE and SME helpers
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 9 Jul 2024 22:02:07 +0000 (15:02 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 23 Jul 2024 00:56:04 +0000 (10:56 +1000)
commit3b9991e35c08be7fd6b84090b2114ff1bfd44d3f
treeab1bfdd680fed7dfca7ff254aff8e1ede6101912
parent8009519b3094ab515def1fe9bbc444d463579448
target/arm: Use set/clear_helper_retaddr in SVE and SME helpers

Avoid a race condition with munmap in another thread.
Use around blocks that exclusively use "host_fn".
Keep the blocks as small as possible, but without setting
and clearing for every operation on one page.

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