Skip to content

Commit

Permalink
Merge pull request #7116 from lioncash/log
Browse files Browse the repository at this point in the history
JitCommon/JitBase: Rename x86-specific logging define to be platform agnostic
  • Loading branch information
degasus committed Jun 14, 2018
2 parents 3307474 + ace24c2 commit 1f49a9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/Jit64/Jit.cpp
Expand Up @@ -954,7 +954,7 @@ const u8* Jit64::DoJit(u32 em_address, JitBlock* b, u32 nextPC)
b->codeSize = (u32)(GetCodePtr() - start);
b->originalSize = code_block.m_num_instructions;

#ifdef JIT_LOG_X86
#ifdef JIT_LOG_GENERATED_CODE
LogGeneratedX86(code_block.m_num_instructions, m_code_buffer, start, b);
#endif

Expand Down
8 changes: 4 additions & 4 deletions Source/Core/Core/PowerPC/JitCommon/JitBase.h
Expand Up @@ -4,10 +4,6 @@

#pragma once

//#define JIT_LOG_X86 // Enables logging of the generated x86 code
//#define JIT_LOG_GPR // Enables logging of the PPC general purpose regs
//#define JIT_LOG_FPR // Enables logging of the PPC floating point regs

#include <cstddef>
#include <map>
#include <unordered_set>
Expand All @@ -21,6 +17,10 @@
#include "Core/PowerPC/JitCommon/JitCache.h"
#include "Core/PowerPC/PPCAnalyst.h"

//#define JIT_LOG_GENERATED_CODE // Enables logging of generated code
//#define JIT_LOG_GPR // Enables logging of the PPC general purpose regs
//#define JIT_LOG_FPR // Enables logging of the PPC floating point regs

// Use these to control the instruction selection
// #define INSTRUCTION_START FallBackToInterpreter(inst); return;
// #define INSTRUCTION_START PPCTables::CountInstruction(inst);
Expand Down

0 comments on commit 1f49a9c

Please sign in to comment.