move property AddressSpaceSize
up by the other properties
This commit is contained in:
parent
fb897c5608
commit
5eb93be7c0
4 changed files with 8 additions and 8 deletions
|
@ -56,6 +56,8 @@ namespace Ryujinx.Cpu.AppleHv
|
|||
|
||||
public event Action<ulong, ulong> UnmapEvent;
|
||||
|
||||
protected override ulong AddressSpaceSize { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new instance of the Hypervisor memory manager.
|
||||
/// </summary>
|
||||
|
@ -862,8 +864,6 @@ namespace Ryujinx.Cpu.AppleHv
|
|||
_addressSpace.Dispose();
|
||||
}
|
||||
|
||||
protected override ulong AddressSpaceSize { get; }
|
||||
|
||||
protected override Span<byte> GetPhysicalAddressSpan(ulong pa, int size)
|
||||
=> _backingMemory.GetSpan(pa, size);
|
||||
|
||||
|
|
|
@ -44,6 +44,8 @@ namespace Ryujinx.Cpu.Jit
|
|||
|
||||
public event Action<ulong, ulong> UnmapEvent;
|
||||
|
||||
protected override ulong AddressSpaceSize { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new instance of the memory manager.
|
||||
/// </summary>
|
||||
|
@ -623,8 +625,6 @@ namespace Ryujinx.Cpu.Jit
|
|||
/// </summary>
|
||||
protected override void Destroy() => _pageTable.Dispose();
|
||||
|
||||
protected override ulong AddressSpaceSize { get; }
|
||||
|
||||
protected override Span<byte> GetPhysicalAddressSpan(ulong pa, int size)
|
||||
=> _backingMemory.GetSpan(pa, size);
|
||||
|
||||
|
|
|
@ -54,6 +54,8 @@ namespace Ryujinx.Cpu.Jit
|
|||
|
||||
public event Action<ulong, ulong> UnmapEvent;
|
||||
|
||||
protected override ulong AddressSpaceSize { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new instance of the host mapped memory manager.
|
||||
/// </summary>
|
||||
|
@ -774,8 +776,6 @@ namespace Ryujinx.Cpu.Jit
|
|||
_memoryEh.Dispose();
|
||||
}
|
||||
|
||||
protected override ulong AddressSpaceSize { get; }
|
||||
|
||||
protected override Span<byte> GetPhysicalAddressSpan(ulong pa, int size)
|
||||
=> _addressSpace.Mirror.GetSpan(pa, size);
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@ namespace Ryujinx.Memory
|
|||
private readonly MemoryBlock _backingMemory;
|
||||
private readonly PageTable<nuint> _pageTable;
|
||||
|
||||
protected override ulong AddressSpaceSize { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new instance of the memory manager.
|
||||
/// </summary>
|
||||
|
@ -401,8 +403,6 @@ namespace Ryujinx.Memory
|
|||
// Only the ARM Memory Manager has tracking for now.
|
||||
}
|
||||
|
||||
protected override ulong AddressSpaceSize { get; }
|
||||
|
||||
protected override unsafe Span<byte> GetPhysicalAddressSpan(nuint pa, int size)
|
||||
=> new((void*)pa, size);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue