mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-09 07:48:34 +00:00
Break: don't crash when bit 31 is set (#444)
This commit is contained in:
parent
74ca82c534
commit
65c67bb4a5
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue