From c7204797e7dc105775b9c439cabac1f1496e3af1 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 3 Feb 2013 13:36:08 -0800 Subject: [PATCH] Don't log idle => idle context switches. --- Core/HLE/sceKernelThread.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Core/HLE/sceKernelThread.cpp b/Core/HLE/sceKernelThread.cpp index 2329ee4e5e..928e0ab840 100644 --- a/Core/HLE/sceKernelThread.cpp +++ b/Core/HLE/sceKernelThread.cpp @@ -2308,10 +2308,16 @@ void __KernelSwitchContext(Thread *target, const char *reason) __KernelChangeReadyState(target, currentThread, true); __KernelLoadContext(&target->context); - DEBUG_LOG(HLE,"Context switched: %s -> %s (%s) (%i - pc: %08x -> %i - pc: %08x)", - oldName, target->GetName(), - reason, - oldUID, oldPC, target->GetUID(), currentMIPS->pc); + + bool fromIdle = oldUID == threadIdleID[0] || oldUID == threadIdleID[1]; + bool toIdle = currentThread == threadIdleID[0] || currentThread == threadIdleID[1]; + if (!(fromIdle && toIdle)) + { + DEBUG_LOG(HLE,"Context switched: %s -> %s (%s) (%i - pc: %08x -> %i - pc: %08x)", + oldName, target->GetName(), + reason, + oldUID, oldPC, currentThread, currentMIPS->pc); + } // No longer waiting. target->nt.waitType = WAITTYPE_NONE;