summaryrefslogtreecommitdiffstats
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-19 03:17:12 +0100
committerbunnei <bunneidev@gmail.com>2019-03-21 03:36:03 +0100
commit3ae0de9b53492dbcac7201a4ec7a3ada072fdfc0 (patch)
tree3578822fba96932f0f1e95111a9cda19de3b9ead /src/core/memory.cpp
parentmaxwell_dma: Check for valid source in destination before copy. (diff)
downloadyuzu-3ae0de9b53492dbcac7201a4ec7a3ada072fdfc0.tar
yuzu-3ae0de9b53492dbcac7201a4ec7a3ada072fdfc0.tar.gz
yuzu-3ae0de9b53492dbcac7201a4ec7a3ada072fdfc0.tar.bz2
yuzu-3ae0de9b53492dbcac7201a4ec7a3ada072fdfc0.tar.lz
yuzu-3ae0de9b53492dbcac7201a4ec7a3ada072fdfc0.tar.xz
yuzu-3ae0de9b53492dbcac7201a4ec7a3ada072fdfc0.tar.zst
yuzu-3ae0de9b53492dbcac7201a4ec7a3ada072fdfc0.zip
Diffstat (limited to '')
-rw-r--r--src/core/memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 365ac82b4..332c1037c 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -48,7 +48,7 @@ static void MapPages(Common::PageTable& page_table, VAddr base, u64 size, u8* me
(base + size) * PAGE_SIZE);
// During boot, current_page_table might not be set yet, in which case we need not flush
- if (current_page_table) {
+ if (Core::System::GetInstance().IsPoweredOn()) {
Core::System::GetInstance().GPU().FlushAndInvalidateRegion(base << PAGE_BITS,
size * PAGE_SIZE);
}