Skip to content

Commit 239a982

Browse files
committed
more loggin
1 parent da85bbc commit 239a982

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/core/address_space.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,12 @@ struct AddressSpace::Impl {
306306
new_flags = PAGE_EXECUTE;
307307
} else if (!read && !write && !execute) {
308308
new_flags = PAGE_NOACCESS;
309+
} else if (!read && write && !execute) {
310+
new_flags = PAGE_READWRITE;
311+
LOG_WARNING(
312+
Common_Memory,
313+
"Requested write-only protection at {:#x} upgraded to read/write (PAGE_READWRITE)",
314+
virtual_addr);
309315
} else {
310316
LOG_CRITICAL(Common_Memory,
311317
"Unsupported protection flag combination for address {:#x}, size {}, "
@@ -594,4 +600,4 @@ void AddressSpace::Protect(VAddr virtual_addr, size_t size, MemoryPermission per
594600
return impl->Protect(virtual_addr, size, read, write, execute);
595601
}
596602

597-
} // namespace Core
603+
} // namespace Core

0 commit comments

Comments
 (0)