]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/ppc: Improve helper_dcbz for user-only
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 9 Jul 2024 23:56:48 +0000 (16:56 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 23 Jul 2024 00:56:16 +0000 (10:56 +1000)
commitf6bcc5b8f91e3c1b855c3078d9133f3918080276
tree0d01d6a4ca533b476d0b11ab3771d6c752d18acb
parentc6d84fd7cfb46a67c5c0404e93ed024cd3a14e6e
target/ppc: Improve helper_dcbz for user-only

Mark the reserve_addr check unlikely.  Use tlb_vaddr_to_host
instead of probe_write, relying on the memset itself to test
for page writability.  Use set/clear_helper_retaddr so that
we can properly unwind on segfault.

With this, a trivial loop around guest memset will no longer
spend nearly 25% of runtime within page_get_flags.

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