From ace24c293206e07959a1aa98a5dd677e10749807 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 14 Jun 2018 08:25:14 -0400 Subject: [PATCH] JitCommon/JitBase: Rename x86-specific logging define to be platform agnostic Given JitBase shouldn't include platform specifics, we can generalize this preprocessor define and allow any JIT to use it to indicate that generated code should be logged. While we're at it, also move these defines beneath the includes with the rest of the defines. --- Source/Core/Core/PowerPC/Jit64/Jit.cpp | 2 +- Source/Core/Core/PowerPC/JitCommon/JitBase.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/PowerPC/Jit64/Jit.cpp index 003edd684c22..507a2528bdbd 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit.cpp @@ -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 diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBase.h b/Source/Core/Core/PowerPC/JitCommon/JitBase.h index 2452df1d8b73..6efb077a2cba 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBase.h +++ b/Source/Core/Core/PowerPC/JitCommon/JitBase.h @@ -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 #include #include @@ -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);