aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Tests
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-02-27 20:45:07 -0300
committergdkchan <gab.dark.100@gmail.com>2018-02-27 20:45:07 -0300
commitf876bd2a805805d9e5dc350b65e8d02fbc5b88b5 (patch)
tree7a3af73448166b628526028cb35d09cc8a010eac /Ryujinx.Tests
parent708761963e09ceb4619f8f21fffc7af051a8f020 (diff)
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
Diffstat (limited to 'Ryujinx.Tests')
-rw-r--r--Ryujinx.Tests/Cpu/CpuTest.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/Ryujinx.Tests/Cpu/CpuTest.cs b/Ryujinx.Tests/Cpu/CpuTest.cs
index bf9d90e3..a56eeb72 100644
--- a/Ryujinx.Tests/Cpu/CpuTest.cs
+++ b/Ryujinx.Tests/Cpu/CpuTest.cs
@@ -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);
}