mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-04 23:16:41 +00:00
Move memory protect logging to VERBOSE level. See #8941 (probably something else going on though)
This commit is contained in:
parent
47cc898c65
commit
f39c603acb
@ -297,7 +297,7 @@ bool PlatformIsWXExclusive() {
|
||||
}
|
||||
|
||||
void ProtectMemoryPages(const void* ptr, size_t size, uint32_t memProtFlags) {
|
||||
INFO_LOG(JIT, "ProtectMemoryPages: %p (%d) : r%d w%d x%d", ptr, (int)size, (memProtFlags & MEM_PROT_READ) != 0, (memProtFlags & MEM_PROT_WRITE) != 0, (memProtFlags & MEM_PROT_EXEC) != 0);
|
||||
VERBOSE_LOG(JIT, "ProtectMemoryPages: %p (%d) : r%d w%d x%d", ptr, (int)size, (memProtFlags & MEM_PROT_READ) != 0, (memProtFlags & MEM_PROT_WRITE) != 0, (memProtFlags & MEM_PROT_EXEC) != 0);
|
||||
|
||||
if (PlatformIsWXExclusive()) {
|
||||
if ((memProtFlags & (MEM_PROT_WRITE | MEM_PROT_EXEC)) == (MEM_PROT_WRITE | MEM_PROT_EXEC))
|
||||
@ -320,7 +320,6 @@ void ProtectMemoryPages(const void* ptr, size_t size, uint32_t memProtFlags) {
|
||||
uintptr_t end = (uintptr_t)ptr + size;
|
||||
start &= ~(page_size - 1);
|
||||
end = (end + page_size - 1) & ~(page_size - 1);
|
||||
INFO_LOG(JIT, "mprotect: %p to %p", (void *)start, (void *)end);
|
||||
mprotect((void *)start, end - start, protect);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user