util/cacheflush: Optimize flushing when ppc host has coherent icache
commitc79a8e840c435bc26a251e34b043318e8b2081db
authorNicholas Piggin <npiggin@gmail.com>
Tue, 21 Jun 2022 01:48:37 +0000 (20 18:48 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 21 Jun 2022 16:28:41 +0000 (21 09:28 -0700)
tree47c9954564787ad2abb3c37b01df9be199530351
parentbdd50dc7d09c90525b80da4f056b849049893732
util/cacheflush: Optimize flushing when ppc host has coherent icache

On linux, the AT_HWCAP bit PPC_FEATURE_ICACHE_SNOOP indicates
that we can use a simplified 3 instruction flush sequence.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20220519141131.29839-1-npiggin@gmail.com>
[rth: update after merging cacheflush.c and cacheinfo.c]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20220621014837.189139-4-richard.henderson@linaro.org>
util/cacheflush.c