Add BRK instruction, fix wrong namespace on one of Am interfaces, and disable Debug/Trace logs by default
This commit is contained in:
parent
276f9f6d48
commit
9063766ed6
12 changed files with 51 additions and 16 deletions
|
@ -1,7 +1,9 @@
|
|||
using ChocolArm64;
|
||||
using ChocolArm64.Memory;
|
||||
using ChocolArm64.State;
|
||||
using Ryujinx.Loaders;
|
||||
using Ryujinx.Loaders.Executables;
|
||||
using Ryujinx.OsHle.Exceptions;
|
||||
using Ryujinx.OsHle.Handles;
|
||||
using Ryujinx.OsHle.Svc;
|
||||
using System;
|
||||
|
@ -135,6 +137,7 @@ namespace Ryujinx.OsHle
|
|||
return -1;
|
||||
}
|
||||
|
||||
Thread.Registers.Break += BreakHandler;
|
||||
Thread.Registers.SvcCall += SvcHandler.SvcCall;
|
||||
Thread.Registers.ProcessId = ProcessId;
|
||||
Thread.Registers.ThreadId = Ns.Os.IdGen.GenerateId();
|
||||
|
@ -148,6 +151,11 @@ namespace Ryujinx.OsHle
|
|||
return Handle;
|
||||
}
|
||||
|
||||
private void BreakHandler(object sender, AExceptionEventArgs e)
|
||||
{
|
||||
throw new GuestBrokeExecutionException();
|
||||
}
|
||||
|
||||
private int GetFreeTlsSlot(AThread Thread)
|
||||
{
|
||||
for (int Index = 1; Index < TotalTlsSlots; Index++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue