Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes some terrible printf debugging that was left over in the ARMv7 JIT. #1370

Merged
merged 1 commit into from
Oct 23, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
33 changes: 0 additions & 33 deletions Source/Core/Core/PowerPC/JitArm32/Jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,33 +255,6 @@ void JitArm::Trace()
PC, SRR0, SRR1, PowerPC::ppcState.fpscr, PowerPC::ppcState.msr, PowerPC::ppcState.spr[8], regs.c_str(), fregs.c_str());
}

void JitArm::PrintDebug(UGeckoInstruction inst, u32 level)
{
if (level > 0)
WARN_LOG(DYNA_REC, "Start: %08x OP '%s' Info", (u32)GetCodePtr(), PPCTables::GetInstructionName(inst));
if (level > 1)
{
GekkoOPInfo* Info = GetOpInfo(inst.hex);
WARN_LOG(DYNA_REC, "\tOuts");
if (Info->flags & FL_OUT_A)
WARN_LOG(DYNA_REC, "\t-OUT_A: %x", inst.RA);
if (Info->flags & FL_OUT_D)
WARN_LOG(DYNA_REC, "\t-OUT_D: %x", inst.RD);
WARN_LOG(DYNA_REC, "\tIns");
// A, AO, B, C, S
if (Info->flags & FL_IN_A)
WARN_LOG(DYNA_REC, "\t-IN_A: %x", inst.RA);
if (Info->flags & FL_IN_A0)
WARN_LOG(DYNA_REC, "\t-IN_A0: %x", inst.RA);
if (Info->flags & FL_IN_B)
WARN_LOG(DYNA_REC, "\t-IN_B: %x", inst.RB);
if (Info->flags & FL_IN_C)
WARN_LOG(DYNA_REC, "\t-IN_C: %x", inst.RC);
if (Info->flags & FL_IN_S)
WARN_LOG(DYNA_REC, "\t-IN_S: %x", inst.RS);
}
}

void JitArm::Jit(u32 em_address)
{
if (GetSpaceLeft() < 0x10000 || blocks.IsFull() || SConfig::GetInstance().m_LocalCoreStartupParameter.bJITNoBlockCache)
Expand Down Expand Up @@ -403,11 +376,6 @@ const u8* JitArm::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBlo
js.skipnext = false;
js.compilerPC = nextPC;

const int DEBUG_OUTPUT = 0;

if (DEBUG_OUTPUT)
WARN_LOG(DYNA_REC, "-------0x%08x-------", em_address);

// Translate instructions
for (u32 i = 0; i < code_block.m_num_instructions; i++)
{
Expand Down Expand Up @@ -470,7 +438,6 @@ const u8* JitArm::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBlo

if (!ops[i].skip)
{
PrintDebug(ops[i].inst, DEBUG_OUTPUT);
if (js.memcheck && (opinfo->flags & FL_USE_FPU))
{
// Don't do this yet
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/Core/PowerPC/JitArm32/Jit.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ class JitArm : public JitBase, public ArmGen::ARMCodeBlock

void DoDownCount();

void PrintDebug(UGeckoInstruction inst, u32 level);

void Helper_UpdateCR1(ArmGen::ARMReg fpscr, ArmGen::ARMReg temp);

void SetFPException(ArmGen::ARMReg Reg, u32 Exception);
Expand Down