Break: don't crash when bit 31 is set

This commit is contained in:
Thog 2018-10-08 15:51:03 +02:00
commit c218706690
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6

View file

@ -247,10 +247,18 @@ namespace Ryujinx.HLE.HOS.Kernel
long Unknown = (long)ThreadState.X1; long Unknown = (long)ThreadState.X1;
long Info = (long)ThreadState.X2; long Info = (long)ThreadState.X2;
if ((Reason & (1 << 31)) == 0)
{
Process.PrintStackTrace(ThreadState); Process.PrintStackTrace(ThreadState);
throw new GuestBrokeExecutionException(); throw new GuestBrokeExecutionException();
} }
else
{
Device.Log.PrintInfo(LogClass.KernelSvc, "Debugger triggered");
Process.PrintStackTrace(ThreadState);
}
}
private void SvcOutputDebugString(AThreadState ThreadState) private void SvcOutputDebugString(AThreadState ThreadState)
{ {