Remove some more unnecessary includes, as well as organize a little more.

This commit is contained in:
Lioncash 2013-10-18 01:14:16 -04:00
parent 97cd42f5c3
commit 22cdc0f56e
25 changed files with 41 additions and 135 deletions

View File

@ -2,18 +2,14 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "../../HW/Memmap.h"
#include "../../HW/CPU.h"
#include "../../Host.h"
#include "../PPCTables.h"
#include "Interpreter.h" #include "Interpreter.h"
#include "../../Debugger/Debugger_SymbolMap.h"
#include "../../CoreTiming.h"
#include "../../ConfigManager.h"
#include "PowerPCDisasm.h" #include "PowerPCDisasm.h"
#include "../PPCTables.h"
#include "../../Debugger/Debugger_SymbolMap.h"
#include "../../Host.h"
#include "../../IPC_HLE/WII_IPC_HLE.h" #include "../../IPC_HLE/WII_IPC_HLE.h"
#include "Atomic.h"
#include "HLE/HLE.h"
#ifdef USE_GDBSTUB #ifdef USE_GDBSTUB
#include "../GDBStub.h" #include "../GDBStub.h"

View File

@ -5,9 +5,16 @@
#ifndef _INTERPRETER_H #ifndef _INTERPRETER_H
#define _INTERPRETER_H #define _INTERPRETER_H
#include "Atomic.h"
#include "../Gekko.h" #include "../Gekko.h"
#include "../PowerPC.h" #include "../PowerPC.h"
#include "../CPUCoreBase.h" #include "../CPUCoreBase.h"
#include "../../Core.h"
#include "../../CoreTiming.h"
#include "../../ConfigManager.h"
#include "../../HLE/HLE.h"
#include "../../HW/Memmap.h"
#include "../../HW/CPU.h"
class Interpreter : public CPUCoreBase class Interpreter : public CPUCoreBase
{ {

View File

@ -3,10 +3,7 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Interpreter.h" #include "Interpreter.h"
#include "../../HW/CPU.h"
#include "../../HLE/HLE.h"
#include "../PPCAnalyst.h" #include "../PPCAnalyst.h"
#include "Atomic.h"
void Interpreter::bx(UGeckoInstruction _inst) void Interpreter::bx(UGeckoInstruction _inst)
{ {

View File

@ -5,7 +5,6 @@
#ifndef _INTERPRETER_FPUTILS_H #ifndef _INTERPRETER_FPUTILS_H
#define _INTERPRETER_FPUTILS_H #define _INTERPRETER_FPUTILS_H
#include "../../Core.h"
#include "Interpreter.h" #include "Interpreter.h"
#include "MathUtil.h" #include "MathUtil.h"

View File

@ -17,10 +17,9 @@
#undef _interlockedbittestandreset64 #undef _interlockedbittestandreset64
#endif #endif
#include "../../Core.h"
#include "Interpreter.h" #include "Interpreter.h"
#include "MathUtil.h"
#include "Interpreter_FPUtils.h" #include "Interpreter_FPUtils.h"
#include "MathUtil.h"
#include "../LUT_frsqrtex.h" #include "../LUT_frsqrtex.h"
using namespace MathUtil; using namespace MathUtil;

View File

@ -3,8 +3,6 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Interpreter.h" #include "Interpreter.h"
#include "../../Core.h"
#include "Atomic.h"
void Interpreter::Helper_UpdateCR0(u32 _uValue) void Interpreter::Helper_UpdateCR0(u32 _uValue)
{ {

View File

@ -3,17 +3,13 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Common.h" #include "Common.h"
#include "Atomic.h"
#include "MathUtil.h" #include "MathUtil.h"
#include "../../HW/Memmap.h"
#include "Interpreter.h" #include "Interpreter.h"
#include "../../Core.h" #include "Interpreter_FPUtils.h"
#include "../JitInterface.h" #include "../JitInterface.h"
#include "Interpreter_FPUtils.h"
bool Interpreter::g_bReserve; bool Interpreter::g_bReserve;
u32 Interpreter::g_reserveAddr; u32 Interpreter::g_reserveAddr;

View File

@ -3,8 +3,6 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Interpreter.h" #include "Interpreter.h"
#include "../../HW/Memmap.h"
#include "Interpreter_FPUtils.h" #include "Interpreter_FPUtils.h"
// dequantize table // dequantize table

View File

@ -6,8 +6,6 @@
#include "Common.h" #include "Common.h"
#include "MathUtil.h" #include "MathUtil.h"
#include "Interpreter.h" #include "Interpreter.h"
#include "../../HW/Memmap.h"
#include "Interpreter_FPUtils.h" #include "Interpreter_FPUtils.h"
using namespace MathUtil; using namespace MathUtil;

View File

@ -15,16 +15,11 @@
#endif #endif
#include "CPUDetect.h" #include "CPUDetect.h"
#include "Atomic.h" #include "Interpreter.h"
#include "../../CoreTiming.h" #include "Interpreter_FPUtils.h"
#include "../../HW/Memmap.h" #include "FPURoundMode.h"
#include "../../HW/GPFifo.h" #include "../../HW/GPFifo.h"
#include "../../HW/SystemTimers.h" #include "../../HW/SystemTimers.h"
#include "../../Core.h"
#include "Interpreter.h"
#include "FPURoundMode.h"
#include "Interpreter_FPUtils.h"
/* /*

View File

@ -10,19 +10,9 @@
#endif #endif
#include "Common.h" #include "Common.h"
#include "x64Emitter.h"
#include "x64ABI.h"
#include "../../HLE/HLE.h" #include "../../HLE/HLE.h"
#include "../../Core.h"
#include "../../PatchEngine.h" #include "../../PatchEngine.h"
#include "../../CoreTiming.h"
#include "../../ConfigManager.h"
#include "../PowerPC.h"
#include "../Profiler.h" #include "../Profiler.h"
#include "../PPCTables.h"
#include "../PPCAnalyst.h"
#include "../../HW/Memmap.h"
#include "../../HW/GPFifo.h"
#include "Jit.h" #include "Jit.h"
#include "JitAsm.h" #include "JitAsm.h"
#include "JitRegCache.h" #include "JitRegCache.h"

View File

@ -19,15 +19,23 @@
#ifndef _JIT64_H #ifndef _JIT64_H
#define _JIT64_H #define _JIT64_H
#include "../PPCAnalyst.h"
#include "../JitCommon/JitCache.h"
#include "../JitCommon/Jit_Util.h"
#include "JitRegCache.h"
#include "x64Emitter.h"
#include "x64Analyzer.h"
#include "../JitCommon/JitBackpatch.h" #include "../JitCommon/JitBackpatch.h"
#include "../JitCommon/JitBase.h" #include "../JitCommon/JitBase.h"
#include "../JitCommon/JitCache.h"
#include "../JitCommon/Jit_Util.h"
#include "../PowerPC.h"
#include "../PPCAnalyst.h"
#include "../PPCTables.h"
#include "../../Core.h"
#include "../../CoreTiming.h"
#include "../../ConfigManager.h"
#include "../../HW/Memmap.h"
#include "../../HW/GPFifo.h"
#include "JitAsm.h" #include "JitAsm.h"
#include "JitRegCache.h"
#include "x64ABI.h"
#include "x64Analyzer.h"
#include "x64Emitter.h"
// Use these to control the instruction selection // Use these to control the instruction selection
// #define INSTRUCTION_START Default(inst); return; // #define INSTRUCTION_START Default(inst); return;

View File

@ -2,21 +2,9 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "x64ABI.h"
#include "x64Emitter.h"
#include "../../HW/Memmap.h"
#include "../PowerPC.h"
#include "../../CoreTiming.h"
#include "MemoryUtil.h" #include "MemoryUtil.h"
#include "x64ABI.h"
#include "Jit.h" #include "Jit.h"
#include "../JitCommon/JitCache.h"
#include "../../HW/GPFifo.h"
#include "../../Core.h"
#include "JitAsm.h" #include "JitAsm.h"
using namespace Gen; using namespace Gen;

View File

@ -2,9 +2,6 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "../PowerPC.h"
#include "../PPCTables.h"
#include "../PPCAnalyst.h"
#include "Jit.h" #include "Jit.h"
#include "JitAsm.h" #include "JitAsm.h"
#include "JitRegCache.h" #include "JitRegCache.h"

View File

@ -4,12 +4,6 @@
#include "Common.h" #include "Common.h"
#include "../../Core.h"
#include "../PowerPC.h"
#include "../../CoreTiming.h"
#include "../PPCTables.h"
#include "x64Emitter.h"
#include "Jit.h" #include "Jit.h"
#include "JitRegCache.h" #include "JitRegCache.h"
#include "JitAsm.h" #include "JitAsm.h"

View File

@ -4,11 +4,6 @@
#include "Common.h" #include "Common.h"
#include "../../Core.h"
#include "../PowerPC.h"
#include "../PPCTables.h"
#include "x64Emitter.h"
#include "Jit.h" #include "Jit.h"
#include "JitRegCache.h" #include "JitRegCache.h"
#include "CPUDetect.h" #include "CPUDetect.h"

View File

@ -2,11 +2,6 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "../../Core.h" // include "Common.h", "CoreParameter.h", SCoreStartupParameter
#include "../PowerPC.h"
#include "../PPCTables.h"
#include "x64Emitter.h"
#include "Jit.h" #include "Jit.h"
#include "JitRegCache.h" #include "JitRegCache.h"
#include "JitAsm.h" #include "JitAsm.h"

View File

@ -7,15 +7,6 @@
#include "Common.h" #include "Common.h"
#include "../PowerPC.h"
#include "../../Core.h"
#include "../../ConfigManager.h"
#include "../../HW/GPFifo.h"
#include "../../HW/Memmap.h"
#include "../PPCTables.h"
#include "x64Emitter.h"
#include "x64ABI.h"
#include "Jit.h" #include "Jit.h"
#include "JitAsm.h" #include "JitAsm.h"
#include "JitRegCache.h" #include "JitRegCache.h"

View File

@ -6,15 +6,7 @@
// Should give a very noticeable speed boost to paired single heavy code. // Should give a very noticeable speed boost to paired single heavy code.
#include "Common.h" #include "Common.h"
#include "../PowerPC.h"
#include "../../Core.h" // include "Common.h", "CoreParameter.h"
#include "../../HW/GPFifo.h"
#include "../../HW/Memmap.h"
#include "../PPCTables.h"
#include "CPUDetect.h" #include "CPUDetect.h"
#include "x64Emitter.h"
#include "x64ABI.h"
#include "Jit.h" #include "Jit.h"
#include "JitAsm.h" #include "JitAsm.h"

View File

@ -6,15 +6,7 @@
// Should give a very noticeable speed boost to paired single heavy code. // Should give a very noticeable speed boost to paired single heavy code.
#include "Common.h" #include "Common.h"
#include "../PowerPC.h"
#include "../../Core.h"
#include "../../HW/GPFifo.h"
#include "../../HW/Memmap.h"
#include "../PPCTables.h"
#include "CPUDetect.h" #include "CPUDetect.h"
#include "x64Emitter.h"
#include "x64ABI.h"
#include "Jit.h" #include "Jit.h"
#include "JitAsm.h" #include "JitAsm.h"

View File

@ -4,12 +4,6 @@
#include "Common.h" #include "Common.h"
#include "../../Core.h"
#include "../PowerPC.h"
#include "../PPCTables.h"
#include "x64Emitter.h"
#include "../../HW/GPFifo.h"
#include "Jit.h" #include "Jit.h"
#include "JitRegCache.h" #include "JitRegCache.h"

View File

@ -4,17 +4,11 @@
#include "Common.h" #include "Common.h"
#include "../../Core.h"
#include "../../CoreTiming.h"
#include "../../HW/SystemTimers.h" #include "../../HW/SystemTimers.h"
#include "../PowerPC.h" #include "HW/ProcessorInterface.h"
#include "../PPCTables.h"
#include "x64Emitter.h"
#include "x64ABI.h"
#include "Jit.h" #include "Jit.h"
#include "JitRegCache.h" #include "JitRegCache.h"
#include "HW/ProcessorInterface.h"
void Jit64::mtspr(UGeckoInstruction inst) void Jit64::mtspr(UGeckoInstruction inst)
{ {

View File

@ -18,7 +18,6 @@
#include "../PPCAnalyst.h" #include "../PPCAnalyst.h"
#include "../../HW/Memmap.h" #include "../../HW/Memmap.h"
#include "../../HW/GPFifo.h" #include "../../HW/GPFifo.h"
#include "../JitCommon/JitCache.h"
#include "JitIL.h" #include "JitIL.h"
#include "JitILAsm.h" #include "JitILAsm.h"
#include "JitIL_Tables.h" #include "JitIL_Tables.h"

View File

@ -17,17 +17,17 @@
#ifndef _JITIL_H #ifndef _JITIL_H
#define _JITIL_H #define _JITIL_H
#include "JitILAsm.h"
#include "x64Emitter.h"
#include "x64ABI.h"
#include "x64Analyzer.h"
#include "../PPCAnalyst.h" #include "../PPCAnalyst.h"
#include "../JitCommon/JitBase.h" #include "../JitCommon/JitBase.h"
#include "../JitCommon/JitCache.h" #include "../JitCommon/JitCache.h"
#include "../JitCommon/JitBackpatch.h" #include "../JitCommon/JitBackpatch.h"
#include "../JitCommon/Jit_Util.h" #include "../JitCommon/Jit_Util.h"
#include "x64Emitter.h"
#include "x64Analyzer.h"
#include "../JitILCommon/JitILBase.h" #include "../JitILCommon/JitILBase.h"
#include "../JitILCommon/IR.h" #include "../JitILCommon/IR.h"
#include "../JitCommon/JitBase.h"
#include "JitILAsm.h"
// #define INSTRUCTION_START Default(inst); return; // #define INSTRUCTION_START Default(inst); return;
// #define INSTRUCTION_START PPCTables::CountInstruction(inst); // #define INSTRUCTION_START PPCTables::CountInstruction(inst);

View File

@ -2,22 +2,16 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "x64ABI.h" #include "JitIL.h"
#include "x64Emitter.h" #include "JitILAsm.h"
#include "../../HW/Memmap.h"
#include "../PowerPC.h"
#include "../../CoreTiming.h"
#include "MemoryUtil.h" #include "MemoryUtil.h"
#include "CPUDetect.h" #include "CPUDetect.h"
#include "x64ABI.h" #include "../PowerPC.h"
#include "../../HW/GPFifo.h"
#include "../../Core.h" #include "../../Core.h"
#include "JitIL.h" #include "../../CoreTiming.h"
#include "JitILAsm.h" #include "../../HW/GPFifo.h"
using namespace Gen; using namespace Gen;