aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgnisman <gleb.nisman@gmail.com>2023-01-14 20:37:04 +0200
committerGitHub <noreply@github.com>2023-01-14 15:37:04 -0300
commitb402b4e7f6463c42ac5afcfaee45592e75851dc3 (patch)
tree94d8c330671f322e846e29a9498de56dd1bed47c
parent93df366b2c1ddb073410b8ce95c8225f52a49f33 (diff)
Change GetPageSize to use Environment.SystemPageSize (#4291)1.1.556
* Change GetPageSize to use Environment.SystemPageSize * Fix PR comment
-rw-r--r--Ryujinx.Memory/MemoryBlock.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/Ryujinx.Memory/MemoryBlock.cs b/Ryujinx.Memory/MemoryBlock.cs
index e1f19c27..2df7ea9b 100644
--- a/Ryujinx.Memory/MemoryBlock.cs
+++ b/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();