Memory: move GetPointer into class

This commit is contained in:
Weiyi Wang 2018-11-21 13:51:12 -05:00
parent 405218c3a7
commit 76e0a4ece7
4 changed files with 8 additions and 6 deletions

View file

@ -210,7 +210,7 @@ bool MemorySystem::IsValidPhysicalAddress(const PAddr paddr) {
return GetPhysicalPointer(paddr) != nullptr;
}
u8* GetPointer(const VAddr vaddr) {
u8* MemorySystem::GetPointer(const VAddr vaddr) {
u8* page_pointer = current_page_table->pointers[vaddr >> PAGE_BITS];
if (page_pointer) {
return page_pointer + (vaddr & PAGE_MASK);