From e01a9de35faddaea0cb99ed71b582d86a73cf3bd Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Tue, 22 Jan 2019 00:57:04 -0300 Subject: memory_manager: Check for reserved page status --- src/video_core/memory_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_core/memory_manager.cpp b/src/video_core/memory_manager.cpp index 47247f097..54abe5298 100644 --- a/src/video_core/memory_manager.cpp +++ b/src/video_core/memory_manager.cpp @@ -154,7 +154,8 @@ std::optional MemoryManager::GpuToCpuAddress(GPUVAddr gpu_addr) { const VAddr base_addr{PageSlot(gpu_addr)}; if (base_addr == static_cast(PageStatus::Allocated) || - base_addr == static_cast(PageStatus::Unmapped)) { + base_addr == static_cast(PageStatus::Unmapped) || + base_addr == static_cast(PageStatus::Reserved)) { return {}; } -- cgit v1.2.3