diff --git a/src/core/address_space.cpp b/src/core/address_space.cpp index 737120652..4738f9d10 100644 --- a/src/core/address_space.cpp +++ b/src/core/address_space.cpp @@ -234,6 +234,8 @@ struct AddressSpace::Impl { ULONG prot = region->prot; s32 fd = region->fd; + LOG_INFO(Core, "addr = {:#x}, size = {:#x}, offset = {:#x}", virtual_addr, size, phys_addr); + void* ptr = nullptr; if (phys_addr != -1) { HANDLE backing = fd != -1 ? reinterpret_cast(fd) : backing_handle; @@ -272,6 +274,8 @@ struct AddressSpace::Impl { PAddr phys_base = region->phys_base; u64 size = region->size; + LOG_INFO(Core, "addr = {:#x}, size = {:#x}, offset = {:#x}", virtual_addr, size, phys_base); + bool ret = false; if (phys_base != -1) { ret = UnmapViewOfFile2(process, reinterpret_cast(virtual_addr), @@ -318,6 +322,8 @@ struct AddressSpace::Impl { MEM_RELEASE | MEM_PRESERVE_PLACEHOLDER)) { UNREACHABLE_MSG("Region splitting failed: {}", Common::GetLastErrorMsg()); } + LOG_INFO(Core, "Splitting placeholder: addr = {:#x}, size = {:#x}", region.base, + region.size); // If the mapping was mapped, remap the region. if (region.is_mapped) { @@ -357,6 +363,8 @@ struct AddressSpace::Impl { MEM_RELEASE | MEM_PRESERVE_PLACEHOLDER)) { UNREACHABLE_MSG("Region splitting failed: {}", Common::GetLastErrorMsg()); } + LOG_INFO(Core, "Splitting placeholder: addr = {:#x}, size = {:#x}", region.base, + region.size); // If these regions were mapped, then map the unmapped area beyond the requested range. if (region.is_mapped) { @@ -425,6 +433,8 @@ struct AddressSpace::Impl { MEM_RELEASE | MEM_COALESCE_PLACEHOLDERS)) { UNREACHABLE_MSG("Region coalescing failed: {}", Common::GetLastErrorMsg()); } + LOG_INFO(Core, "Coalescing placeholders: addr = {:#x}, size = {:#x}", it->first, + it->second.size); } }