don't use GetPhysicalAddressMemory()
This commit is contained in:
parent
fa6db27b32
commit
8ed2f5e33b
2 changed files with 7 additions and 1 deletions
|
@ -122,7 +122,8 @@ namespace Ryujinx.Cpu.Jit
|
||||||
{
|
{
|
||||||
if (last.IsContiguousWith(physicalMemory, out nuint contiguousStart, out int contiguousSize))
|
if (last.IsContiguousWith(physicalMemory, out nuint contiguousStart, out int contiguousSize))
|
||||||
{
|
{
|
||||||
last.Replace(GetPhysicalAddressMemory(contiguousStart, contiguousSize));
|
Memory<byte> contiguousPhysicalMemory = new NativeMemoryManager<byte>(contiguousStart, contiguousSize).Memory;
|
||||||
|
last.Replace(contiguousPhysicalMemory);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,6 +8,11 @@ namespace Ryujinx.Memory
|
||||||
private readonly T* _pointer;
|
private readonly T* _pointer;
|
||||||
private readonly int _length;
|
private readonly int _length;
|
||||||
|
|
||||||
|
public NativeMemoryManager(nuint pointer, int length)
|
||||||
|
: this((T*)pointer, length)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public NativeMemoryManager(T* pointer, int length)
|
public NativeMemoryManager(T* pointer, int length)
|
||||||
{
|
{
|
||||||
_pointer = pointer;
|
_pointer = pointer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue