summaryrefslogtreecommitdiffstats
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-07-15 03:43:15 +0200
committerLiam <byteslice@airmail.cc>2023-07-15 03:43:15 +0200
commita85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb (patch)
tree40f818c29a9e19dbc2c7aeb352d7892c59d7e858 /src/core/memory.cpp
parentfile_sys/content_archive: Detect compressed NCAs (#11047) (diff)
downloadyuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar.gz
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar.bz2
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar.lz
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar.xz
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.tar.zst
yuzu-a85ce8ea563dfdd0ea61b22a80ffcf7ff66861cb.zip
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r--src/core/memory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 805963178..e1fbe8e00 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -31,10 +31,10 @@ struct Memory::Impl {
explicit Impl(Core::System& system_) : system{system_} {}
void SetCurrentPageTable(Kernel::KProcess& process, u32 core_id) {
- current_page_table = &process.PageTable().PageTableImpl();
+ current_page_table = &process.GetPageTable().PageTableImpl();
current_page_table->fastmem_arena = system.DeviceMemory().buffer.VirtualBasePointer();
- const std::size_t address_space_width = process.PageTable().GetAddressSpaceWidth();
+ const std::size_t address_space_width = process.GetPageTable().GetAddressSpaceWidth();
system.ArmInterface(core_id).PageTableChanged(*current_page_table, address_space_width);
}
@@ -186,7 +186,7 @@ struct Memory::Impl {
void WalkBlock(const Kernel::KProcess& process, const Common::ProcessAddress addr,
const std::size_t size, auto on_unmapped, auto on_memory, auto on_rasterizer,
auto increment) {
- const auto& page_table = process.PageTable().PageTableImpl();
+ const auto& page_table = process.GetPageTable().PageTableImpl();
std::size_t remaining_size = size;
std::size_t page_index = addr >> YUZU_PAGEBITS;
std::size_t page_offset = addr & YUZU_PAGEMASK;
@@ -808,7 +808,7 @@ void Memory::UnmapRegion(Common::PageTable& page_table, Common::ProcessAddress b
bool Memory::IsValidVirtualAddress(const Common::ProcessAddress vaddr) const {
const Kernel::KProcess& process = *system.ApplicationProcess();
- const auto& page_table = process.PageTable().PageTableImpl();
+ const auto& page_table = process.GetPageTable().PageTableImpl();
const size_t page = vaddr >> YUZU_PAGEBITS;
if (page >= page_table.pointers.size()) {
return false;