aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-22 18:41:12 -0400
committerGitHub <noreply@github.com>2019-03-22 18:41:12 -0400
commitfabddcb96218709d84e036cfa3bc0c56d7dc3369 (patch)
tree5a3ae98bb04d3fb3f513a51504b63940e70c5130 /src/core/memory.cpp
parent7aebbf35e76eb1f543b4bb1327f17eb7d0097797 (diff)
parent51cdb0df88a19210b42dbf31a91214d3f323801d (diff)
Merge pull request #2256 from bunnei/gpu-vmm
gpu: Rewrite MemoryManager based on the VMManager implementation.
Diffstat (limited to 'src/core/memory.cpp')
-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 365ac82b4a..332c1037c2 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);
}