From 263b7a44f9ec1ac78fdb1c14a84c652c1bd63905 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 19 Nov 2023 13:57:23 -0500 Subject: arm_nce: skip dc cvac on possibly write-protected areas --- src/core/arm/nce/arm_nce.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/core/arm/nce') diff --git a/src/core/arm/nce/arm_nce.cpp b/src/core/arm/nce/arm_nce.cpp index fd82f3b0e..bb1f6d2e6 100644 --- a/src/core/arm/nce/arm_nce.cpp +++ b/src/core/arm/nce/arm_nce.cpp @@ -377,9 +377,7 @@ void ARM_NCE::ClearInstructionCache() { } void ARM_NCE::InvalidateCacheRange(u64 addr, std::size_t size) { - // Clean cache. - auto* ptr = reinterpret_cast(addr); - __builtin___clear_cache(ptr, ptr + size); + this->ClearInstructionCache(); } void ARM_NCE::ClearExclusiveState() { -- cgit v1.2.3