Change GetPageSize to use Environment.SystemPageSize (#4291)

* Change GetPageSize to use Environment.SystemPageSize

* Fix PR comment
This commit is contained in:
gnisman 2023-01-14 20:37:04 +02:00 committed by Matt Heins
parent 4573b76a93
commit 7e8c0a2e11

View file

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