Update MemoryManager.cs

This commit is contained in:
LDj3SNuD 2019-09-11 17:10:26 +02:00 committed by GitHub
commit 18240cef6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,8 +9,6 @@ namespace ARMeilleure.Memory
{
public unsafe class MemoryManager : IMemoryManager
{
public static long PTbl { get; private set; }
public const int PageBits = 12;
public const int PageSize = 1 << PageBits;
public const int PageMask = PageSize - 1;
@ -67,8 +65,6 @@ namespace ARMeilleure.Memory
PtLevelMask = PtLevelSize - 1;
_pageTable = Allocate((ulong)(PtLevelSize * IntPtr.Size));
PTbl = _pageTable.ToInt64();
}
public void Map(long va, long pa, long size)
@ -836,4 +832,4 @@ namespace ARMeilleure.Memory
Free(ptr);
}
}
}
}