aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authoryuzubot <yuzu@yuzu-emu.org>2024-03-03 13:02:50 +0000
committeryuzubot <yuzu@yuzu-emu.org>2024-03-03 13:02:50 +0000
commitc280f95b1a4b2a415a26a7db9f2b9823042f2781 (patch)
treee75e9e2441dc3f8657cc42f2daaae08737949c2b /src/core/memory.cpp
parentf2aa821f94ec8e4b1936e338bd1c27e92924a23c (diff)
"Merge Tagged PR 13018"
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r--src/core/memory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 8775369a41..6f7703fced 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;