mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-14 06:39:12 +00:00
Also reset call depth when not using the unmanaged dispatch loop
This commit is contained in:
parent
2eca0f28e4
commit
25f4178dda
3 changed files with 8 additions and 0 deletions
|
@ -128,6 +128,11 @@ namespace ARMeilleure.State
|
|||
public bool GetFPstateFlag(FPState flag) => _nativeContext.GetFPStateFlag(flag);
|
||||
public void SetFPstateFlag(FPState flag, bool value) => _nativeContext.SetFPStateFlag(flag, value);
|
||||
|
||||
internal void ResetCallDepth()
|
||||
{
|
||||
_nativeContext.ResetCallDepth();
|
||||
}
|
||||
|
||||
internal void CheckInterrupt()
|
||||
{
|
||||
if (_interrupted)
|
||||
|
|
|
@ -183,6 +183,8 @@ namespace ARMeilleure.State
|
|||
public bool GetRunning() => GetStorage().Running != 0;
|
||||
public void SetRunning(bool value) => GetStorage().Running = value ? 1 : 0;
|
||||
|
||||
public void ResetCallDepth() => GetStorage().CallDepth = 1;
|
||||
|
||||
public unsafe static int GetRegisterOffset(Register reg)
|
||||
{
|
||||
if (reg.Type == RegisterType.Integer)
|
||||
|
|
|
@ -199,6 +199,7 @@ namespace ARMeilleure.Translation
|
|||
|
||||
Statistics.StartTimer();
|
||||
|
||||
context.ResetCallDepth();
|
||||
ulong nextAddr = func.Execute(Stubs.ContextWrapper, context);
|
||||
|
||||
Statistics.StopTimer(address);
|
||||
|
|
Loading…
Reference in a new issue