From ad1027455aac982fe6e3ae6288cfa3f1eff2ae31 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 22 Feb 2021 12:43:40 +0300 Subject: [PATCH] Fix minor inconsistency in utils::memory_reset (Linux) --- rpcs3/util/vm_native.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/util/vm_native.cpp b/rpcs3/util/vm_native.cpp index ac6641a68d..13fe2548e1 100644 --- a/rpcs3/util/vm_native.cpp +++ b/rpcs3/util/vm_native.cpp @@ -205,7 +205,7 @@ namespace utils } } - ensure(::madvise(reinterpret_cast(ptr64 & -4096), size + (ptr64 & 4095), MADV_WILLNEED) != -1); + ensure(::madvise(reinterpret_cast(ptr64 & -4096), size + (ptr64 & 4095), MADV_WILLNEED | c_madv_dump) != -1); #endif }