aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authoryuzubot <[email protected]>2024-03-04 00:57:21 +0000
committeryuzubot <[email protected]>2024-03-04 00:57:21 +0000
commitadc597a7995508270628dbfc05afdf838bdc7cd6 (patch)
treec8c9b83baa57002efe2e5527a45135541c8bb836 /src/core/memory.cpp
parent276ceb26d0c58a00a0e65e3bf4d9c4371428f82d (diff)
downloadyuzu-android-adc597a7995508270628dbfc05afdf838bdc7cd6.tar.gz
yuzu-android-adc597a7995508270628dbfc05afdf838bdc7cd6.zip
Merge yuzu-emu#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 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;