Explorar el Código

arm_nce: skip dc cvac on possibly write-protected areas

Liam hace 2 años
padre
commit
263b7a44f9
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      src/core/arm/nce/arm_nce.cpp

+ 1 - 3
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<char*>(addr);
-    __builtin___clear_cache(ptr, ptr + size);
+    this->ClearInstructionCache();
 }
 
 void ARM_NCE::ClearExclusiveState() {