From 379ec554a8aa6e683a3a094a9f4ce8ec6da3f3e9 Mon Sep 17 00:00:00 2001 From: TheTurtle <47210458+raphaelthegreat@users.noreply.github.com> Date: Sun, 7 Jul 2024 01:26:17 +0300 Subject: [PATCH] memory: Set virtual query offset --- src/core/memory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 75faeae8..5166908a 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -243,6 +243,7 @@ int MemoryManager::VirtualQuery(VAddr addr, int flags, if (vma.type == VMAType::Direct) { const auto dmem_it = FindDmemArea(vma.phys_base); ASSERT(dmem_it != dmem_map.end()); + info->offset = vma.phys_base; info->memory_type = dmem_it->second.memory_type; }