Explorar el Código

hle: kernel: k_code_memory: Fix usage of KPageLinkedList to use physical address space.

bunnei hace 4 años
padre
commit
94543f129e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/core/hle/kernel/k_code_memory.cpp

+ 2 - 1
src/core/hle/kernel/k_code_memory.cpp

@@ -28,7 +28,8 @@ ResultCode KCodeMemory::Initialize(Core::DeviceMemory& device_memory, VAddr addr
     auto& page_table = m_owner->PageTable();
 
     // Construct the page group.
-    m_page_group = KPageLinkedList(addr, Common::DivideUp(size, PageSize));
+    m_page_group =
+        KPageLinkedList(page_table.GetPhysicalAddr(addr), Common::DivideUp(size, PageSize));
 
     // Lock the memory.
     R_TRY(page_table.LockForCodeMemory(addr, size))