qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 1/4] util/cacheflush: fix cache on windows-arm64


From: Richard Henderson
Subject: Re: [PATCH v4 1/4] util/cacheflush: fix cache on windows-arm64
Date: Tue, 21 Feb 2023 13:44:22 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 2/21/23 05:30, Pierrick Bouvier wrote:
ctr_el0 access is privileged on this platform and fails as an illegal
instruction.

Windows does not offer a way to flush data cache from userspace, and
only FlushInstructionCache is available in Windows API.

The generic implementation of flush_idcache_range uses,
__builtin___clear_cache, which already use the FlushInstructionCache
function. So we rely on that.

Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
  util/cacheflush.c | 14 +++++++++++---
  1 file changed, 11 insertions(+), 3 deletions(-)

Queueing this to tcg-next.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]