Remove some debug stuff

This commit is contained in:
gdkchan 2018-06-17 22:48:04 -03:00
commit 11963f2c6a
4 changed files with 3 additions and 10 deletions

View file

@ -166,11 +166,6 @@ namespace ChocolArm64.Instruction
Context.EmitLdint(Rn); Context.EmitLdint(Rn);
} }
if (Name == nameof(AMemory.SetExclusive))
{
Context.EmitLdc_I8(Context.CurrOp.Position);
}
Context.EmitCall(typeof(AMemory), Name); Context.EmitCall(typeof(AMemory), Name);
} }

View file

@ -61,7 +61,7 @@ namespace ChocolArm64.Memory
} }
} }
public void SetExclusive(AThreadState ThreadState, long Position, long oppos) public void SetExclusive(AThreadState ThreadState, long Position)
{ {
Position &= ~ErgMask; Position &= ~ErgMask;

View file

@ -81,8 +81,6 @@ namespace Ryujinx.HLE.OsHle.Kernel
private void SvcSleepThread(AThreadState ThreadState) private void SvcSleepThread(AThreadState ThreadState)
{ {
//Process.PrintStackTrace(ThreadState);
ulong TimeoutNs = ThreadState.X0; ulong TimeoutNs = ThreadState.X0;
Ns.Log.PrintDebug(LogClass.KernelSvc, "Timeout = " + TimeoutNs.ToString("x16")); Ns.Log.PrintDebug(LogClass.KernelSvc, "Timeout = " + TimeoutNs.ToString("x16"));

View file

@ -314,7 +314,7 @@ namespace Ryujinx.HLE.OsHle.Kernel
long MutexAddress = WaitThread.MutexAddress; long MutexAddress = WaitThread.MutexAddress;
Memory.SetExclusive(ThreadState, MutexAddress, 0); Memory.SetExclusive(ThreadState, MutexAddress);
int MutexValue = Process.Memory.ReadInt32(MutexAddress); int MutexValue = Process.Memory.ReadInt32(MutexAddress);
@ -332,7 +332,7 @@ namespace Ryujinx.HLE.OsHle.Kernel
break; break;
} }
Memory.SetExclusive(ThreadState, MutexAddress, 0); Memory.SetExclusive(ThreadState, MutexAddress);
MutexValue = Process.Memory.ReadInt32(MutexAddress); MutexValue = Process.Memory.ReadInt32(MutexAddress);
} }