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.
This commit is contained in:
Stephen Miller 2024-09-02 09:28:35 -05:00
parent b7e0df34a7
commit 816288962b

View file

@ -311,6 +311,8 @@ int MemoryManager::VirtualQuery(VAddr addr, int flags,
info->protection = static_cast<s32>(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) {