summaryrefslogtreecommitdiffstats
path: root/src/video_core/memory_manager.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-04-09 00:09:16 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-04-09 00:09:16 +0200
commit1c18dc6577de0d3e294a22074eec02b70776930f (patch)
treedda0663b498d846dcdeec171952f152e8127a0b7 /src/video_core/memory_manager.cpp
parentMemory: Address Feedback. (diff)
downloadyuzu-1c18dc6577de0d3e294a22074eec02b70776930f.tar
yuzu-1c18dc6577de0d3e294a22074eec02b70776930f.tar.gz
yuzu-1c18dc6577de0d3e294a22074eec02b70776930f.tar.bz2
yuzu-1c18dc6577de0d3e294a22074eec02b70776930f.tar.lz
yuzu-1c18dc6577de0d3e294a22074eec02b70776930f.tar.xz
yuzu-1c18dc6577de0d3e294a22074eec02b70776930f.tar.zst
yuzu-1c18dc6577de0d3e294a22074eec02b70776930f.zip
Diffstat (limited to 'src/video_core/memory_manager.cpp')
-rw-r--r--src/video_core/memory_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/memory_manager.cpp b/src/video_core/memory_manager.cpp
index eb934ad5e..a3389d0d2 100644
--- a/src/video_core/memory_manager.cpp
+++ b/src/video_core/memory_manager.cpp
@@ -202,7 +202,7 @@ u8* MemoryManager::GetPointer(GPUVAddr addr) {
auto& memory = system.Memory();
- const VAddr const page_addr{page_table.backing_addr[addr >> page_bits]};
+ const VAddr page_addr{page_table.backing_addr[addr >> page_bits]};
if (page_addr != 0) {
return memory.GetPointer(page_addr + (addr & page_mask));
@@ -219,7 +219,7 @@ const u8* MemoryManager::GetPointer(GPUVAddr addr) const {
const auto& memory = system.Memory();
- const VAddr const page_addr{page_table.backing_addr[addr >> page_bits]};
+ const VAddr page_addr{page_table.backing_addr[addr >> page_bits]};
if (page_addr != 0) {
return memory.GetPointer(page_addr + (addr & page_mask));