From abbb2877257b8939e966bb6ce1fae9f0e2142b49 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Mon, 2 Sep 2024 09:28:35 -0500 Subject: [PATCH] Assign is_stack and is_pooled Properly set these values to avoid potential errors, and future proof for when these types of memory are emulated. --- src/core/memory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 7896ae500..de0abb8a6 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -311,6 +311,8 @@ int MemoryManager::VirtualQuery(VAddr addr, int flags, info->protection = static_cast(vma.prot); info->is_flexible.Assign(vma.type == VMAType::Flexible); info->is_direct.Assign(vma.type == VMAType::Direct); + info->is_stack.Assign(vma.type == VMAType::Stack); + info->is_pooled.Assign(vma.type == VMAType::Pooled); info->is_commited.Assign(vma.type != VMAType::Free && vma.type != VMAType::Reserved); vma.name.copy(info->name.data(), std::min(info->name.size(), vma.name.size())); if (vma.type == VMAType::Direct) {