Merge pull request #950 from Sonicadvance1/remove_DebugCount
Remove PowerPCState::DebugCount.
This commit is contained in:
commit
c648b7be21
|
@ -156,8 +156,6 @@ bool CBoot::EmulatedBS2_GC()
|
||||||
// Load patches
|
// Load patches
|
||||||
PatchEngine::LoadPatches();
|
PatchEngine::LoadPatches();
|
||||||
|
|
||||||
PowerPC::ppcState.DebugCount = 0;
|
|
||||||
|
|
||||||
// If we have any patches that need to be applied very early, here's a good place
|
// If we have any patches that need to be applied very early, here's a good place
|
||||||
PatchEngine::ApplyFramePatches();
|
PatchEngine::ApplyFramePatches();
|
||||||
|
|
||||||
|
@ -418,8 +416,6 @@ bool CBoot::EmulatedBS2_Wii()
|
||||||
PC = PowerPC::ppcState.gpr[3];
|
PC = PowerPC::ppcState.gpr[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
PowerPC::ppcState.DebugCount = 0;
|
|
||||||
|
|
||||||
return apploaderRan;
|
return apploaderRan;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -179,13 +179,6 @@ int Interpreter::SingleStepInner()
|
||||||
last_pc = PC;
|
last_pc = PC;
|
||||||
PC = NPC;
|
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();
|
patches();
|
||||||
|
|
||||||
GekkoOPInfo *opinfo = GetOpInfo(instCode);
|
GekkoOPInfo *opinfo = GetOpInfo(instCode);
|
||||||
|
|
|
@ -9,17 +9,6 @@
|
||||||
|
|
||||||
using namespace Gen;
|
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
|
//GLOBAL STATIC ALLOCATIONS x86
|
||||||
//EAX - ubiquitous scratch register - EVERYBODY scratches this
|
//EAX - ubiquitous scratch register - EVERYBODY scratches this
|
||||||
|
|
||||||
|
@ -32,7 +21,6 @@ static bool enableDebug = false;
|
||||||
// dynarec buffer
|
// dynarec buffer
|
||||||
// At this offset - 4, there is an int specifying the block number.
|
// At this offset - 4, there is an int specifying the block number.
|
||||||
|
|
||||||
|
|
||||||
void Jit64AsmRoutineManager::Generate()
|
void Jit64AsmRoutineManager::Generate()
|
||||||
{
|
{
|
||||||
enterCode = AlignCode16();
|
enterCode = AlignCode16();
|
||||||
|
@ -120,11 +108,6 @@ void Jit64AsmRoutineManager::Generate()
|
||||||
|
|
||||||
TEST(32, R(EAX), R(EAX));
|
TEST(32, R(EAX), R(EAX));
|
||||||
FixupBranch notfound = J_CC(CC_L);
|
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
|
//grab from list and jump to it
|
||||||
JMPptr(MComplex(R15, RAX, 8, 0));
|
JMPptr(MComplex(R15, RAX, 8, 0));
|
||||||
SetJumpTarget(notfound);
|
SetJumpTarget(notfound);
|
||||||
|
|
|
@ -117,7 +117,6 @@ void Init(int cpu_core)
|
||||||
FPURoundMode::SetPrecisionMode(FPURoundMode::PREC_53);
|
FPURoundMode::SetPrecisionMode(FPURoundMode::PREC_53);
|
||||||
|
|
||||||
memset(ppcState.sr, 0, sizeof(ppcState.sr));
|
memset(ppcState.sr, 0, sizeof(ppcState.sr));
|
||||||
ppcState.DebugCount = 0;
|
|
||||||
ppcState.dtlb_last = 0;
|
ppcState.dtlb_last = 0;
|
||||||
memset(ppcState.dtlb_va, 0, sizeof(ppcState.dtlb_va));
|
memset(ppcState.dtlb_va, 0, sizeof(ppcState.dtlb_va));
|
||||||
memset(ppcState.dtlb_pa, 0, sizeof(ppcState.dtlb_pa));
|
memset(ppcState.dtlb_pa, 0, sizeof(ppcState.dtlb_pa));
|
||||||
|
|
|
@ -66,8 +66,6 @@ struct GC_ALIGNED64(PowerPCState)
|
||||||
|
|
||||||
u32 sr[16]; // Segment registers.
|
u32 sr[16]; // Segment registers.
|
||||||
|
|
||||||
u32 DebugCount;
|
|
||||||
|
|
||||||
// special purpose registers - controls quantizers, DMA, and lots of other misc extensions.
|
// special purpose registers - controls quantizers, DMA, and lots of other misc extensions.
|
||||||
// also for power management, but we don't care about that.
|
// also for power management, but we don't care about that.
|
||||||
u32 spr[1024];
|
u32 spr[1024];
|
||||||
|
|
Loading…
Reference in New Issue