diff --git a/Source/Core/Core/PowerPC/CachedInterpreter.cpp b/Source/Core/Core/PowerPC/CachedInterpreter.cpp index bd07c27f37..b73d226131 100644 --- a/Source/Core/Core/PowerPC/CachedInterpreter.cpp +++ b/Source/Core/Core/PowerPC/CachedInterpreter.cpp @@ -2,9 +2,11 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. -#include "Common/Common.h" - +#include "Common/CommonTypes.h" +#include "Core/ConfigManager.h" +#include "Core/HLE/HLE.h" #include "Core/PowerPC/CachedInterpreter.h" +#include "Core/PowerPC/PowerPC.h" void CachedInterpreter::Init() { diff --git a/Source/Core/Core/PowerPC/CachedInterpreter.h b/Source/Core/Core/PowerPC/CachedInterpreter.h index 9fd2983a85..32c6afaa49 100644 --- a/Source/Core/Core/PowerPC/CachedInterpreter.h +++ b/Source/Core/Core/PowerPC/CachedInterpreter.h @@ -6,7 +6,7 @@ #include -#include "Core/PowerPC/CPUCoreBase.h" +#include "Common/CommonTypes.h" #include "Core/PowerPC/PPCAnalyst.h" #include "Core/PowerPC/JitCommon/JitBase.h" diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp index 0c72effafd..a018183c8c 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter.cpp @@ -10,9 +10,14 @@ #include "Common/CommonTypes.h" #include "Common/GekkoDisassembler.h" #include "Common/StringUtil.h" +#include "Common/Logging/Log.h" +#include "Core/ConfigManager.h" +#include "Core/CoreTiming.h" #include "Core/Host.h" #include "Core/Debugger/Debugger_SymbolMap.h" -#include "Core/IPC_HLE/WII_IPC_HLE.h" +#include "Core/HLE/HLE.h" +#include "Core/HW/CPU.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PPCTables.h" #include "Core/PowerPC/Interpreter/Interpreter.h" diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter.h b/Source/Core/Core/PowerPC/Interpreter/Interpreter.h index 8203a2bd14..2d81a60a3b 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter.h +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter.h @@ -4,16 +4,9 @@ #pragma once -#include "Common/Atomic.h" -#include "Core/ConfigManager.h" -#include "Core/Core.h" -#include "Core/CoreTiming.h" -#include "Core/HLE/HLE.h" -#include "Core/HW/CPU.h" -#include "Core/HW/Memmap.h" +#include "Common/CommonTypes.h" #include "Core/PowerPC/CPUCoreBase.h" #include "Core/PowerPC/Gekko.h" -#include "Core/PowerPC/PowerPC.h" class Interpreter : public CPUCoreBase { diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Branch.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Branch.cpp index 842c4ec863..68ef28b1a5 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Branch.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Branch.cpp @@ -4,7 +4,10 @@ #include "Common/Assert.h" #include "Common/CommonTypes.h" -#include "Core/PowerPC/PPCAnalyst.h" +#include "Core/ConfigManager.h" +#include "Core/CoreTiming.h" +#include "Core/HLE/HLE.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Interpreter/Interpreter.h" void Interpreter::bx(UGeckoInstruction _inst) @@ -16,13 +19,6 @@ void Interpreter::bx(UGeckoInstruction _inst) NPC = SignExt26(_inst.LI << 2); else NPC = PC+SignExt26(_inst.LI << 2); -/* -#ifdef _DEBUG - if (_inst.LK) - { - PPCAnalyst::LogFunctionCall(NPC); - } -#endif*/ m_EndBlock = true; diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h index 6b22e7472a..302d00540f 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h @@ -7,10 +7,11 @@ #include #include +#include "Common/CommonTypes.h" #include "Common/CPUDetect.h" #include "Common/MathUtil.h" #include "Core/PowerPC/Gekko.h" -#include "Core/PowerPC/Interpreter/Interpreter.h" +#include "Core/PowerPC/PowerPC.h" const u64 PPC_NAN_U64 = 0x7ff8000000000000ull; const double PPC_NAN = *(double* const)&PPC_NAN_U64; diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp index def12b5029..404599d718 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp @@ -5,7 +5,9 @@ #include #include +#include "Common/CommonTypes.h" #include "Common/MathUtil.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/Interpreter/Interpreter_FPUtils.h" diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp index 7dd41c33a9..f8e1d44520 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Integer.cpp @@ -2,6 +2,11 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/CommonFuncs.h" +#include "Common/CommonTypes.h" +#include "Common/MsgHandler.h" +#include "Common/Logging/Log.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Interpreter/Interpreter.h" void Interpreter::Helper_UpdateCR0(u32 value) diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp index 43e89a54e3..f3855904e9 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp @@ -5,8 +5,10 @@ #include "Common/CommonTypes.h" #include "Common/MathUtil.h" +#include "Core/ConfigManager.h" #include "Core/HW/DSP.h" #include "Core/PowerPC/JitInterface.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/Interpreter/Interpreter_FPUtils.h" diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStorePaired.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStorePaired.cpp index 4b13a1550b..df22d4b29e 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStorePaired.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStorePaired.cpp @@ -2,9 +2,14 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include +#include +#include + #include "Common/Assert.h" #include "Common/CommonTypes.h" #include "Common/MathUtil.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/Interpreter/Interpreter_FPUtils.h" diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Paired.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Paired.cpp index e4fd42ab41..3190c7eae1 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Paired.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Paired.cpp @@ -3,8 +3,10 @@ // Refer to the license.txt file included. #include + #include "Common/CommonTypes.h" #include "Common/MathUtil.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/Interpreter/Interpreter_FPUtils.h" diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_SystemRegisters.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_SystemRegisters.cpp index 5b27df0a40..57cfdd1f31 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_SystemRegisters.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_SystemRegisters.cpp @@ -4,10 +4,11 @@ #include "Common/Assert.h" #include "Common/CommonTypes.h" -#include "Common/CPUDetect.h" #include "Common/FPURoundMode.h" +#include "Common/Logging/Log.h" #include "Core/HW/GPFifo.h" #include "Core/HW/SystemTimers.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/Interpreter/Interpreter_FPUtils.h" diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Tables.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Tables.cpp index f5d455dd09..f79b47d31a 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Tables.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Tables.cpp @@ -2,6 +2,7 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/MsgHandler.h" #include "Core/PowerPC/Gekko.h" #include "Core/PowerPC/PPCTables.h" #include "Core/PowerPC/Interpreter/Interpreter.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp index 6e97847f08..34a638bc68 100644 --- a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp @@ -2,11 +2,17 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. -#include "Common/Arm64Emitter.h" -#include "Common/Common.h" -#include "Common/PerformanceCounter.h" +#include +#include "Common/Arm64Emitter.h" +#include "Common/CommonTypes.h" +#include "Common/PerformanceCounter.h" +#include "Common/StringUtil.h" +#include "Common/Logging/Log.h" + +#include "Core/ConfigManager.h" #include "Core/PatchEngine.h" +#include "Core/HLE/HLE.h" #include "Core/HW/ProcessorInterface.h" #include "Core/PowerPC/JitInterface.h" #include "Core/PowerPC/Profiler.h" diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp b/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp index 5a7430f0c7..e8d5c4f004 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp @@ -7,8 +7,10 @@ #include "disasm.h" +#include "Common/CommonTypes.h" #include "Common/GekkoDisassembler.h" #include "Common/StringUtil.h" +#include "Core/ConfigManager.h" #include "Core/PowerPC/JitCommon/JitBase.h" JitBase *jit; diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBase.h b/Source/Core/Core/PowerPC/JitCommon/JitBase.h index 366a7fbcd6..f8f5b220af 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBase.h +++ b/Source/Core/Core/PowerPC/JitCommon/JitBase.h @@ -14,6 +14,7 @@ #include "Common/x64Analyzer.h" #include "Common/x64Emitter.h" +#include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/CoreTiming.h" #include "Core/MachineContext.h" diff --git a/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp b/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp index 4e25cb0e76..661a00120f 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp @@ -10,11 +10,13 @@ // locating performance issues. #include -#include "disasm.h" +#include +#include #include "Common/CommonTypes.h" #include "Common/JitRegister.h" -#include "Common/MemoryUtil.h" +#include "Core/ConfigManager.h" +#include "Core/Core.h" #include "Core/PowerPC/JitInterface.h" #include "Core/PowerPC/JitCommon/JitBase.h" diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.cpp b/Source/Core/Core/PowerPC/PPCAnalyst.cpp index 8619c4d693..3743300bbf 100644 --- a/Source/Core/Core/PowerPC/PPCAnalyst.cpp +++ b/Source/Core/Core/PowerPC/PPCAnalyst.cpp @@ -6,12 +6,10 @@ #include #include +#include "Common/CommonTypes.h" #include "Common/StringUtil.h" - #include "Core/ConfigManager.h" -#include "Core/GeckoCode.h" -#include "Core/HW/Memmap.h" -#include "Core/PowerPC/JitInterface.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PPCAnalyst.h" #include "Core/PowerPC/PPCSymbolDB.h" #include "Core/PowerPC/PPCTables.h" diff --git a/Source/Core/Core/PowerPC/PPCSymbolDB.cpp b/Source/Core/Core/PowerPC/PPCSymbolDB.cpp index ed05c21e6e..43f45595f1 100644 --- a/Source/Core/Core/PowerPC/PPCSymbolDB.cpp +++ b/Source/Core/Core/PowerPC/PPCSymbolDB.cpp @@ -9,9 +9,8 @@ #include "Common/CommonTypes.h" #include "Common/FileUtil.h" #include "Common/StringUtil.h" - -#include "Core/Host.h" -#include "Core/HW/Memmap.h" +#include "Common/Logging/Log.h" +#include "Core/ConfigManager.h" #include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PPCAnalyst.h" #include "Core/PowerPC/PPCSymbolDB.h" diff --git a/Source/Core/Core/PowerPC/PowerPC.cpp b/Source/Core/Core/PowerPC/PowerPC.cpp index 0c7ccbee86..d5ef266ede 100644 --- a/Source/Core/Core/PowerPC/PowerPC.cpp +++ b/Source/Core/Core/PowerPC/PowerPC.cpp @@ -2,20 +2,18 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/Assert.h" #include "Common/ChunkFile.h" #include "Common/CommonTypes.h" #include "Common/Event.h" #include "Common/FPURoundMode.h" #include "Common/MathUtil.h" +#include "Common/Logging/Log.h" -#include "Core/Core.h" -#include "Core/CoreTiming.h" +#include "Core/ConfigManager.h" #include "Core/Host.h" -#include "Core/HW/CPU.h" -#include "Core/HW/EXI.h" #include "Core/HW/Memmap.h" #include "Core/HW/SystemTimers.h" - #include "Core/PowerPC/CPUCoreBase.h" #include "Core/PowerPC/JitInterface.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/Core/PowerPC/SignatureDB.cpp b/Source/Core/Core/PowerPC/SignatureDB.cpp index e096dd088b..34b95b1c7d 100644 --- a/Source/Core/Core/PowerPC/SignatureDB.cpp +++ b/Source/Core/Core/PowerPC/SignatureDB.cpp @@ -6,9 +6,8 @@ #include "Common/CommonTypes.h" #include "Common/FileUtil.h" - -#include "Core/HW/Memmap.h" - +#include "Common/Logging/Log.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PPCAnalyst.h" #include "Core/PowerPC/PPCSymbolDB.h" #include "Core/PowerPC/SignatureDB.h"