diff options
| author | niansa <anton-sa@web.de> | 2024-03-08 22:44:03 +0000 |
|---|---|---|
| committer | Mike Lothian <mike@fireburn.co.uk> | 2024-12-20 15:24:40 +0000 |
| commit | 9b4ef19ed93dc9a377344781b72b332dacc4f064 (patch) | |
| tree | 3baa9af51fbcacecea9dee95a347fd5b6f46e7f4 /src/core/memory.cpp | |
| parent | 7b7cf984e376c0fc6a7272ec8ad1d9b6d1a56dd4 (diff) | |
Port changes from Early Access
Diffstat (limited to 'src/core/memory.cpp')
| -rw-r--r-- | src/core/memory.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 8775369a4..6f7703fce 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -49,8 +49,7 @@ struct Memory::Impl { void SetCurrentPageTable(Kernel::KProcess& process) { current_page_table = &process.GetPageTable().GetImpl(); - if (std::addressof(process) == system.ApplicationProcess() && - Settings::IsFastmemEnabled()) { + if (process.IsApplication() && Settings::IsFastmemEnabled()) { current_page_table->fastmem_arena = system.DeviceMemory().buffer.VirtualBasePointer(); } else { current_page_table->fastmem_arena = nullptr; |
