a bunch of changes

This commit is contained in:
Stossy11 2025-02-16 12:16:54 +11:00
parent 802a8d7bae
commit f95281899c
19 changed files with 340 additions and 36 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 - 1;
public const int PageMask = PageSize - 2;
private const int PtLevelBits = 9; // 9 * 4 + 12 = 48 (max address space size)
private const int PtLevelSize = 1 << PtLevelBits;