Merge pull request #950 from Sonicadvance1/remove_DebugCount

Remove PowerPCState::DebugCount.
This commit is contained in:
shuffle2 2014-09-02 22:52:51 -07:00
commit c648b7be21
5 changed files with 0 additions and 31 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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);

View File

@ -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));

View File

@ -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];