diff options
| author | gdk <gab.dark.100@gmail.com> | 2022-06-23 04:06:39 -0300 |
|---|---|---|
| committer | Mary-nyan <thog@protonmail.com> | 2022-09-10 16:23:49 +0200 |
| commit | 22214ac664e726427d15c18d9e5a5b248fe8478f (patch) | |
| tree | f6ce4f44d7b59129c79e7d32a6e4e2c39845432c | |
| parent | 45e520a27c2deb11d22a38c58962048d303460eb (diff) | |
Delete unused code
| -rw-r--r-- | Ryujinx.Cpu/Jit/MappingTree.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Ryujinx.Cpu/Jit/MappingTree.cs b/Ryujinx.Cpu/Jit/MappingTree.cs index 278e2ebe..63908a83 100644 --- a/Ryujinx.Cpu/Jit/MappingTree.cs +++ b/Ryujinx.Cpu/Jit/MappingTree.cs @@ -114,15 +114,6 @@ namespace Ryujinx.Cpu.Jit 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) { _treeLock.AcquireReaderLock(Timeout.Infinite); @@ -257,22 +248,6 @@ namespace Ryujinx.Cpu.Jit 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) { Mapping map = _tree.GetNode(new Mapping(va, 1UL, 0UL, MappingState.Unmapped)); |
