Skip to content

Commit

Permalink
Merge pull request #950 from Sonicadvance1/remove_DebugCount
Browse files Browse the repository at this point in the history
Remove PowerPCState::DebugCount.
  • Loading branch information
shuffle2 committed Sep 3, 2014
2 parents fa29b18 + 1ad1a90 commit c648b7b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 31 deletions.
4 changes: 0 additions & 4 deletions Source/Core/Core/Boot/Boot_BS2Emu.cpp
Expand Up @@ -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();

Expand Down Expand Up @@ -418,8 +416,6 @@ bool CBoot::EmulatedBS2_Wii()
PC = PowerPC::ppcState.gpr[3];
}

PowerPC::ppcState.DebugCount = 0;

return apploaderRan;
}

Expand Down
7 changes: 0 additions & 7 deletions Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp
Expand Up @@ -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);
Expand Down
17 changes: 0 additions & 17 deletions Source/Core/Core/PowerPC/Jit64/JitAsm.cpp
Expand Up @@ -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

Expand All @@ -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();
Expand Down Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Core/PowerPC/PowerPC.cpp
Expand Up @@ -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));
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/Core/PowerPC/PowerPC.h
Expand Up @@ -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];
Expand Down

0 comments on commit c648b7b

Please sign in to comment.