summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-26 09:33:16 +0100
committerbunnei <bunneidev@gmail.com>2022-03-26 09:33:16 +0100
commit94543f129eeef66f6ee65b917a3e913dd9f9ebfc (patch)
tree798dd1170874320f0ccdac644e596afc30790842
parenthle: kernel: k_page_table: Implement MakeAndOpenPageGroup & MakePageGroup. (diff)
downloadyuzu-94543f129eeef66f6ee65b917a3e913dd9f9ebfc.tar
yuzu-94543f129eeef66f6ee65b917a3e913dd9f9ebfc.tar.gz
yuzu-94543f129eeef66f6ee65b917a3e913dd9f9ebfc.tar.bz2
yuzu-94543f129eeef66f6ee65b917a3e913dd9f9ebfc.tar.lz
yuzu-94543f129eeef66f6ee65b917a3e913dd9f9ebfc.tar.xz
yuzu-94543f129eeef66f6ee65b917a3e913dd9f9ebfc.tar.zst
yuzu-94543f129eeef66f6ee65b917a3e913dd9f9ebfc.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_code_memory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_code_memory.cpp b/src/core/hle/kernel/k_code_memory.cpp
index b365ce7b7..63bbe02e9 100644
--- a/src/core/hle/kernel/k_code_memory.cpp
+++ b/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))