mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-27 17:07:10 +02:00
Print guest stack trace on invalid memory access (#1407)
* Print guest stack trace on invalid memory access * Improve XML docs
This commit is contained in:
parent
864bdc92f0
commit
b8f81092ea
7 changed files with 143 additions and 75 deletions
|
@ -198,6 +198,11 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
|||
}
|
||||
|
||||
public KThread GetCurrentThread()
|
||||
{
|
||||
return GetCurrentThreadOrNull() ?? GetDummyThread();
|
||||
}
|
||||
|
||||
public KThread GetCurrentThreadOrNull()
|
||||
{
|
||||
lock (CoreContexts)
|
||||
{
|
||||
|
@ -210,9 +215,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
|||
}
|
||||
}
|
||||
|
||||
return GetDummyThread();
|
||||
|
||||
throw new InvalidOperationException("Current thread is not scheduled!");
|
||||
return null;
|
||||
}
|
||||
|
||||
private KThread _dummyThread;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue