Merge pull request #4433 from wwylele/vmmanager-simple

VMManager: remove shared_ptr<vector> backing type
This commit is contained in:
Weiyi Wang
2018-11-19 11:13:22 -05:00
committed by GitHub
9 changed files with 110 additions and 204 deletions

View File

@ -92,9 +92,6 @@ static u8* GetPointerFromVMA(const Kernel::Process& process, VAddr vaddr) {
auto& vma = it->second;
switch (vma.type) {
case Kernel::VMAType::AllocatedMemoryBlock:
direct_pointer = vma.backing_block->data() + vma.offset;
break;
case Kernel::VMAType::BackingMemory:
direct_pointer = vma.backing_memory;
break;