Fix whatever happened

This commit is contained in:
Stossy11 2025-02-16 16:22:20 +11:00
parent 0e80bd3d51
commit fd0ce75f67
7 changed files with 22 additions and 11 deletions

View file

@ -4,7 +4,7 @@ namespace Ryujinx.Memory
{
public const int PageBits = 12;
public const int PageSize = 1 << PageBits;
public const int PageMask = PageSize - 2;
public const int PageMask = PageSize - 1;
private const int PtLevelBits = 9; // 9 * 4 + 12 = 48 (max address space size)
private const int PtLevelSize = 1 << PtLevelBits;