diff --git a/Source/Core/Core/Boot/Boot_BS2Emu.cpp b/Source/Core/Core/Boot/Boot_BS2Emu.cpp index 4509671f83..6d0761f4b4 100644 --- a/Source/Core/Core/Boot/Boot_BS2Emu.cpp +++ b/Source/Core/Core/Boot/Boot_BS2Emu.cpp @@ -156,8 +156,6 @@ bool CBoot::EmulatedBS2_GC() // Load patches PatchEngine::LoadPatches(); - PowerPC::ppcState.DebugCount = 0; - // If we have any patches that need to be applied very early, here's a good place PatchEngine::ApplyFramePatches(); @@ -418,8 +416,6 @@ bool CBoot::EmulatedBS2_Wii() PC = PowerPC::ppcState.gpr[3]; } - PowerPC::ppcState.DebugCount = 0; - return apploaderRan; } diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp index 18a3ab68fc..10a0a45734 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp @@ -179,13 +179,6 @@ int Interpreter::SingleStepInner() last_pc = PC; PC = NPC; -#if defined(_DEBUG) || defined(DEBUGFAST) - if (PowerPC::ppcState.gpr[1] == 0) - { - WARN_LOG(POWERPC, "%i Corrupt stack", PowerPC::ppcState.DebugCount); - } - PowerPC::ppcState.DebugCount++; -#endif patches(); GekkoOPInfo *opinfo = GetOpInfo(instCode); diff --git a/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp b/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp index 4c926d2d03..7b61c18b08 100644 --- a/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp +++ b/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp @@ -9,17 +9,6 @@ using namespace Gen; -//static int temp32; // unused? - -//TODO - make an option -//#if _DEBUG -static bool enableDebug = false; -//#else -// bool enableDebug = false; -//#endif - -//static bool enableStatistics = false; //unused? - //GLOBAL STATIC ALLOCATIONS x86 //EAX - ubiquitous scratch register - EVERYBODY scratches this @@ -32,7 +21,6 @@ static bool enableDebug = false; // dynarec buffer // At this offset - 4, there is an int specifying the block number. - void Jit64AsmRoutineManager::Generate() { enterCode = AlignCode16(); @@ -120,11 +108,6 @@ void Jit64AsmRoutineManager::Generate() TEST(32, R(EAX), R(EAX)); FixupBranch notfound = J_CC(CC_L); - //IDEA - we have 26 bits, why not just use offsets from base of code? - if (enableDebug) - { - ADD(32, M(&PowerPC::ppcState.DebugCount), Imm8(1)); - } //grab from list and jump to it JMPptr(MComplex(R15, RAX, 8, 0)); SetJumpTarget(notfound); diff --git a/Source/Core/Core/PowerPC/PowerPC.cpp b/Source/Core/Core/PowerPC/PowerPC.cpp index 8b0f9d6362..ada76040f2 100644 --- a/Source/Core/Core/PowerPC/PowerPC.cpp +++ b/Source/Core/Core/PowerPC/PowerPC.cpp @@ -117,7 +117,6 @@ void Init(int cpu_core) FPURoundMode::SetPrecisionMode(FPURoundMode::PREC_53); memset(ppcState.sr, 0, sizeof(ppcState.sr)); - ppcState.DebugCount = 0; ppcState.dtlb_last = 0; memset(ppcState.dtlb_va, 0, sizeof(ppcState.dtlb_va)); memset(ppcState.dtlb_pa, 0, sizeof(ppcState.dtlb_pa)); diff --git a/Source/Core/Core/PowerPC/PowerPC.h b/Source/Core/Core/PowerPC/PowerPC.h index 37a0cc7123..7dd59f1573 100644 --- a/Source/Core/Core/PowerPC/PowerPC.h +++ b/Source/Core/Core/PowerPC/PowerPC.h @@ -66,8 +66,6 @@ struct GC_ALIGNED64(PowerPCState) u32 sr[16]; // Segment registers. - u32 DebugCount; - // special purpose registers - controls quantizers, DMA, and lots of other misc extensions. // also for power management, but we don't care about that. u32 spr[1024];