Change SvcGetInfo 5 to return actual heap size, remove AMemoryAlloc since it is no longer needed with direct memory access, move some memory management logic out of AMemoryMgr, change default virtual filesystem path to AppData
This commit is contained in:
parent
708761963e
commit
f876bd2a80
17 changed files with 251 additions and 337 deletions
|
@ -17,7 +17,6 @@ namespace Ryujinx.Tests.Cpu
|
|||
private long EntryPoint;
|
||||
|
||||
private IntPtr Ram;
|
||||
private AMemoryAlloc Allocator;
|
||||
private AMemory Memory;
|
||||
private AThread Thread;
|
||||
|
||||
|
@ -31,9 +30,8 @@ namespace Ryujinx.Tests.Cpu
|
|||
|
||||
Ram = Marshal.AllocHGlobal((IntPtr)AMemoryMgr.RamSize);
|
||||
ATranslator Translator = new ATranslator();
|
||||
Allocator = new AMemoryAlloc();
|
||||
Memory = new AMemory(Ram, Allocator);
|
||||
Memory.Manager.MapPhys(Position, Size, 2, AMemoryPerm.Read | AMemoryPerm.Write | AMemoryPerm.Execute);
|
||||
Memory = new AMemory(Ram);
|
||||
Memory.Manager.Map(Position, Size, 2, AMemoryPerm.Read | AMemoryPerm.Write | AMemoryPerm.Execute);
|
||||
Thread = new AThread(Translator, Memory, ThreadPriority.Normal, EntryPoint);
|
||||
}
|
||||
|
||||
|
@ -42,7 +40,6 @@ namespace Ryujinx.Tests.Cpu
|
|||
{
|
||||
Thread = null;
|
||||
Memory = null;
|
||||
Allocator = null;
|
||||
Marshal.FreeHGlobal(Ram);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue