mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-12 19:37:06 +00:00
gdb: Do not skip CheckInterrupt when gdb stub is enabled
When GDB stub is enabled, CheckSynchronization is called too frequently because it skips _nativeContext.SetCounter(MinCountForCheck) (called in CheckInterrupt()), causing CheckSynchronization to be constantly called in JIT. This could cause performance issue. It also skips the call to the KProcess.InterruptHandler, which causes some games to deadlock when GDB stub is enabled. I'm not sure if this change will cause any side effects, but it seems GDB stub is still working correctly after this change. This change will not affect regular users.
This commit is contained in:
parent
41b8b6961c
commit
35a8116ae8
1 changed files with 1 additions and 5 deletions
|
|
@ -200,11 +200,7 @@ namespace ARMeilleure.Instructions
|
|||
|
||||
ExecutionContext context = GetContext();
|
||||
|
||||
// If debugging, we'll handle interrupts outside
|
||||
if (!Optimizations.EnableDebugging)
|
||||
{
|
||||
context.CheckInterrupt();
|
||||
}
|
||||
|
||||
Statistics.ResumeTimer();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue