소스 검색

Change GetPageSize to use Environment.SystemPageSize (#4291)

* Change GetPageSize to use Environment.SystemPageSize

* Fix PR comment
gnisman 3 년 전
부모
커밋
b402b4e7f6
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      Ryujinx.Memory/MemoryBlock.cs

+ 1 - 6
Ryujinx.Memory/MemoryBlock.cs

@@ -435,12 +435,7 @@ namespace Ryujinx.Memory
 
         public static ulong GetPageSize()
         {
-            if (OperatingSystem.IsMacOS() && RuntimeInformation.ProcessArchitecture == Architecture.Arm64)
-            {
-                return 1UL << 14;
-            }
-
-            return 1UL << 12;
+            return (ulong)Environment.SystemPageSize;
         }
 
         private static void ThrowInvalidMemoryRegionException() => throw new InvalidMemoryRegionException();