diff options
| author | 2019-03-22 18:41:12 -0400 | |
|---|---|---|
| committer | 2019-03-22 18:41:12 -0400 | |
| commit | e5893db3e618fd276733a24eebc0606c5fd1e7f2 (patch) | |
| tree | 5a3ae98bb04d3fb3f513a51504b63940e70c5130 /src/core/memory.cpp | |
| parent | Merge pull request #2277 from bunnei/fix-smo-transitions (diff) | |
| parent | memory_manager: Cleanup FindFreeRegion. (diff) | |
| download | yuzu-e5893db3e618fd276733a24eebc0606c5fd1e7f2.tar.gz yuzu-e5893db3e618fd276733a24eebc0606c5fd1e7f2.tar.xz yuzu-e5893db3e618fd276733a24eebc0606c5fd1e7f2.zip | |
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.cpp | 2 |
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 | |||
| 48 | (base + size) * PAGE_SIZE); | 48 | (base + size) * PAGE_SIZE); |
| 49 | 49 | ||
| 50 | // During boot, current_page_table might not be set yet, in which case we need not flush | 50 | // During boot, current_page_table might not be set yet, in which case we need not flush |
| 51 | if (current_page_table) { | 51 | if (Core::System::GetInstance().IsPoweredOn()) { |
| 52 | Core::System::GetInstance().GPU().FlushAndInvalidateRegion(base << PAGE_BITS, | 52 | Core::System::GetInstance().GPU().FlushAndInvalidateRegion(base << PAGE_BITS, |
| 53 | size * PAGE_SIZE); | 53 | size * PAGE_SIZE); |
| 54 | } | 54 | } |