mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-18 07:16:38 +00:00
Delete unused code
This commit is contained in:
parent
45e520a27c
commit
22214ac664
1 changed files with 0 additions and 25 deletions
|
@ -114,15 +114,6 @@ namespace Ryujinx.Cpu.Jit
|
||||||
return regions;
|
return regions;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool TryGetContiguousPa(ulong va, ulong size, out ulong pa)
|
|
||||||
{
|
|
||||||
_treeLock.AcquireReaderLock(Timeout.Infinite);
|
|
||||||
bool result = TryGetContiguousPaImpl(va, size, out pa);
|
|
||||||
_treeLock.ReleaseReaderLock();
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
public (MemoryBlock, ulong) GetContiguousBlock(MemoryBlock backingMemory, MemoryBlock mirror, ulong va, ulong size)
|
public (MemoryBlock, ulong) GetContiguousBlock(MemoryBlock backingMemory, MemoryBlock mirror, ulong va, ulong size)
|
||||||
{
|
{
|
||||||
_treeLock.AcquireReaderLock(Timeout.Infinite);
|
_treeLock.AcquireReaderLock(Timeout.Infinite);
|
||||||
|
@ -257,22 +248,6 @@ namespace Ryujinx.Cpu.Jit
|
||||||
return regions;
|
return regions;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool TryGetContiguousPaImpl(ulong va, ulong size, out ulong pa)
|
|
||||||
{
|
|
||||||
Mapping map = _tree.GetNode(new Mapping(va, 1UL, 0UL, MappingState.Unmapped));
|
|
||||||
|
|
||||||
ulong endAddress = va + size;
|
|
||||||
|
|
||||||
if (map != null && map.Address <= va && map.EndAddress >= endAddress)
|
|
||||||
{
|
|
||||||
pa = map.BackingOffset + (va - map.Address);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
pa = 0;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private (MemoryBlock, ulong) GetContiguousBlockImpl(MemoryBlock backingMemory, MemoryBlock mirror, ulong va, ulong size)
|
private (MemoryBlock, ulong) GetContiguousBlockImpl(MemoryBlock backingMemory, MemoryBlock mirror, ulong va, ulong size)
|
||||||
{
|
{
|
||||||
Mapping map = _tree.GetNode(new Mapping(va, 1UL, 0UL, MappingState.Unmapped));
|
Mapping map = _tree.GetNode(new Mapping(va, 1UL, 0UL, MappingState.Unmapped));
|
||||||
|
|
Loading…
Reference in a new issue