Fix is_committed

Based on hardware tests, this appears to be true for every possible VMA type except reserved.
This commit is contained in:
Stephen Miller 2025-01-21 23:23:01 -06:00
parent 5c62a00134
commit b4a17b7ac9

View File

@ -530,7 +530,7 @@ int MemoryManager::VirtualQuery(VAddr addr, int flags,
info->is_direct.Assign(vma.type == VMAType::Direct);
info->is_stack.Assign(vma.type == VMAType::Stack);
info->is_pooled.Assign(vma.type == VMAType::PoolReserved);
info->is_committed.Assign(vma.type == VMAType::Pooled);
info->is_committed.Assign(vma.type != VMAType::Reserved);
vma.name.copy(info->name.data(), std::min(info->name.size(), vma.name.size()));
if (vma.type == VMAType::Direct) {
const auto dmem_it = FindDmemArea(vma.phys_base);