1
0
Fork 0
forked from suyu/suyu

Memory: Correct GCC errors.

This commit is contained in:
Fernando Sahmkow 2020-04-08 18:09:16 -04:00
parent 913f42a3a7
commit 1c18dc6577
2 changed files with 3 additions and 2 deletions

View file

@ -19,6 +19,7 @@
#include "common/alignment.h"
#include "common/common_types.h"
#include "core/core.h"
#include "core/memory.h"
#include "video_core/buffer_cache/buffer_block.h"
#include "video_core/buffer_cache/map_interval.h"
#include "video_core/memory_manager.h"

View file

@ -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));