From 85d8d1d7cab5615e6911b7b570c8dd0b94a521ab Mon Sep 17 00:00:00 2001
From: Mary <me@thog.eu>
Date: Sun, 24 Oct 2021 23:16:59 +0200
Subject: [PATCH] misc: Fix IVirtualMemoryManager.Fill ignoring value (#2775)

This fix IVirtualMemoryManager.Fill to actually use the provided fill
value instead of 0.

This have no implication at the moment as everything that use it pass 0
but it is needed for some upcoming kernel fixes.
---
 Ryujinx.Memory/IVirtualMemoryManager.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Ryujinx.Memory/IVirtualMemoryManager.cs b/Ryujinx.Memory/IVirtualMemoryManager.cs
index 3056bb2e1b..8bccfbad4a 100644
--- a/Ryujinx.Memory/IVirtualMemoryManager.cs
+++ b/Ryujinx.Memory/IVirtualMemoryManager.cs
@@ -68,7 +68,7 @@ namespace Ryujinx.Memory
 
                 using var writableRegion = GetWritableRegion(va + subOffset, copySize);
 
-                writableRegion.Memory.Span.Fill(0);
+                writableRegion.Memory.Span.Fill(value);
             }
         }