diff --git a/Source/Core/Core/PowerPC/CachedInterpreter.cpp b/Source/Core/Core/PowerPC/CachedInterpreter.cpp index b73d226131..d394d56355 100644 --- a/Source/Core/Core/PowerPC/CachedInterpreter.cpp +++ b/Source/Core/Core/PowerPC/CachedInterpreter.cpp @@ -3,10 +3,14 @@ // Refer to the license.txt file included. #include "Common/CommonTypes.h" +#include "Common/Logging/Log.h" #include "Core/ConfigManager.h" +#include "Core/CoreTiming.h" #include "Core/HLE/HLE.h" #include "Core/PowerPC/CachedInterpreter.h" +#include "Core/PowerPC/Gekko.h" #include "Core/PowerPC/PowerPC.h" +#include "Core/PowerPC/PPCAnalyst.h" void CachedInterpreter::Init() { diff --git a/Source/Core/Core/PowerPC/CachedInterpreter.h b/Source/Core/Core/PowerPC/CachedInterpreter.h index 32c6afaa49..4a6b76b4ed 100644 --- a/Source/Core/Core/PowerPC/CachedInterpreter.h +++ b/Source/Core/Core/PowerPC/CachedInterpreter.h @@ -4,7 +4,7 @@ #pragma once -#include +#include #include "Common/CommonTypes.h" #include "Core/PowerPC/PPCAnalyst.h" diff --git a/Source/Core/Core/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/PowerPC/Jit64/Jit.cpp index 08806d3e89..a9801ee1fa 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit.cpp @@ -11,16 +11,23 @@ #endif #include "Common/CommonTypes.h" +#include "Common/MemoryUtil.h" #include "Common/StringUtil.h" +#include "Common/x64ABI.h" +#include "Common/Logging/Log.h" +#include "Core/CoreTiming.h" #include "Core/PatchEngine.h" #include "Core/HLE/HLE.h" +#include "Core/HW/GPFifo.h" #include "Core/HW/ProcessorInterface.h" #include "Core/PowerPC/JitInterface.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Profiler.h" #include "Core/PowerPC/Jit64/Jit.h" #include "Core/PowerPC/Jit64/Jit64_Tables.h" #include "Core/PowerPC/Jit64/JitAsm.h" #include "Core/PowerPC/Jit64/JitRegCache.h" +#include "Core/PowerPC/JitCommon/Jit_Util.h" #if defined(_DEBUG) || defined(DEBUGFAST) #include "Common/GekkoDisassembler.h" #endif diff --git a/Source/Core/Core/PowerPC/Jit64/Jit.h b/Source/Core/Core/PowerPC/Jit64/Jit.h index 17934d48b3..6af36a916d 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit.h +++ b/Source/Core/Core/PowerPC/Jit64/Jit.h @@ -18,21 +18,11 @@ // ---------- #pragma once -#include "Common/x64ABI.h" -#include "Common/x64Analyzer.h" +#include "Common/CommonTypes.h" #include "Common/x64Emitter.h" - -#include "Core/ConfigManager.h" -#include "Core/Core.h" -#include "Core/CoreTiming.h" -#include "Core/HW/GPFifo.h" -#include "Core/HW/Memmap.h" -#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PPCAnalyst.h" -#include "Core/PowerPC/PPCTables.h" #include "Core/PowerPC/Jit64/JitAsm.h" #include "Core/PowerPC/Jit64/JitRegCache.h" -#include "Core/PowerPC/JitCommon/Jit_Util.h" #include "Core/PowerPC/JitCommon/JitBase.h" #include "Core/PowerPC/JitCommon/JitCache.h" diff --git a/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp b/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp index f9384b2df6..0bea34a617 100644 --- a/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp +++ b/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp @@ -2,9 +2,14 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/CommonTypes.h" #include "Common/JitRegister.h" -#include "Common/MemoryUtil.h" - +#include "Common/x64ABI.h" +#include "Common/x64Emitter.h" +#include "Core/ConfigManager.h" +#include "Core/CoreTiming.h" +#include "Core/HW/Memmap.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Jit64/Jit.h" #include "Core/PowerPC/Jit64/JitAsm.h" diff --git a/Source/Core/Core/PowerPC/Jit64/JitAsm.h b/Source/Core/Core/PowerPC/Jit64/JitAsm.h index 8c33c8bace..6e3332d275 100644 --- a/Source/Core/Core/PowerPC/Jit64/JitAsm.h +++ b/Source/Core/Core/PowerPC/Jit64/JitAsm.h @@ -4,6 +4,7 @@ #pragma once +#include "Common/CommonTypes.h" #include "Core/PowerPC/Jit64Common/Jit64AsmCommon.h" // In Dolphin, we don't use inline assembly. Instead, we generate all machine-near diff --git a/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp b/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp index 029d987fa9..19eb4238a8 100644 --- a/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp +++ b/Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp @@ -2,11 +2,20 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include #include +#include +#include +#include "Common/Assert.h" +#include "Common/BitSet.h" +#include "Common/CommonTypes.h" +#include "Common/MsgHandler.h" +#include "Common/x64Emitter.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Jit64/Jit.h" -#include "Core/PowerPC/Jit64/JitAsm.h" #include "Core/PowerPC/Jit64/JitRegCache.h" +#include "Core/PowerPC/JitCommon/Jit_Util.h" using namespace Gen; using namespace PowerPC; diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_Branch.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_Branch.cpp index e23e3da2e9..5b16b5ee47 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_Branch.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_Branch.cpp @@ -2,10 +2,14 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/Assert.h" #include "Common/CommonTypes.h" - +#include "Common/x64Emitter.h" +#include "Core/ConfigManager.h" +#include "Core/PowerPC/Gekko.h" +#include "Core/PowerPC/PowerPC.h" +#include "Core/PowerPC/PPCAnalyst.h" #include "Core/PowerPC/Jit64/Jit.h" -#include "Core/PowerPC/Jit64/JitAsm.h" #include "Core/PowerPC/Jit64/JitRegCache.h" // The branches are known good, or at least reasonably good. diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_FloatingPoint.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_FloatingPoint.cpp index dc3cbd3cf9..4a923d4a0b 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_FloatingPoint.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_FloatingPoint.cpp @@ -2,9 +2,17 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include +#include + +#include "Common/Assert.h" #include "Common/CommonTypes.h" #include "Common/CPUDetect.h" - +#include "Common/x64Emitter.h" +#include "Core/ConfigManager.h" +#include "Core/Core.h" +#include "Core/PowerPC/PowerPC.h" +#include "Core/PowerPC/PPCAnalyst.h" #include "Core/PowerPC/Jit64/Jit.h" #include "Core/PowerPC/Jit64/JitRegCache.h" diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp index 703b910100..a058643256 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp @@ -5,10 +5,16 @@ #include #include +#include "Common/Assert.h" +#include "Common/CommonTypes.h" #include "Common/MathUtil.h" +#include "Common/x64Emitter.h" +#include "Core/ConfigManager.h" +#include "Core/PowerPC/PowerPC.h" +#include "Core/PowerPC/PPCAnalyst.h" #include "Core/PowerPC/Jit64/Jit.h" -#include "Core/PowerPC/Jit64/JitAsm.h" #include "Core/PowerPC/Jit64/JitRegCache.h" +#include "Core/PowerPC/JitCommon/Jit_Util.h" using namespace Gen; diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp index 8e3e1cff11..70eef7373d 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp @@ -5,13 +5,20 @@ // TODO(ector): Tons of pshufb optimization of the loads/stores, for SSSE3+, possibly SSE4, only. // Should give a very noticable speed boost to paired single heavy code. +#include "Common/BitSet.h" #include "Common/CommonTypes.h" - +#include "Common/MsgHandler.h" +#include "Common/x64ABI.h" +#include "Common/x64Emitter.h" +#include "Core/ConfigManager.h" +#include "Core/CoreTiming.h" #include "Core/HW/DSP.h" +#include "Core/HW/Memmap.h" #include "Core/PowerPC/JitInterface.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Jit64/Jit.h" -#include "Core/PowerPC/Jit64/JitAsm.h" #include "Core/PowerPC/Jit64/JitRegCache.h" +#include "Core/PowerPC/JitCommon/Jit_Util.h" using namespace Gen; diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStoreFloating.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStoreFloating.cpp index 7101d378da..e34dfe6429 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStoreFloating.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStoreFloating.cpp @@ -2,12 +2,14 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/BitSet.h" #include "Common/CommonTypes.h" #include "Common/CPUDetect.h" - +#include "Common/x64Emitter.h" +#include "Core/ConfigManager.h" #include "Core/PowerPC/Jit64/Jit.h" -#include "Core/PowerPC/Jit64/JitAsm.h" #include "Core/PowerPC/Jit64/JitRegCache.h" +#include "Core/PowerPC/JitCommon/Jit_Util.h" using namespace Gen; diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStorePaired.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStorePaired.cpp index 4d875323eb..da9e813208 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStorePaired.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStorePaired.cpp @@ -5,12 +5,15 @@ // TODO(ector): Tons of pshufb optimization of the loads/stores, for SSSE3+, possibly SSE4, only. // Should give a very noticeable speed boost to paired single heavy code. +#include "Common/BitSet.h" #include "Common/CommonTypes.h" #include "Common/CPUDetect.h" - +#include "Common/x64Emitter.h" +#include "Core/ConfigManager.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Jit64/Jit.h" -#include "Core/PowerPC/Jit64/JitAsm.h" #include "Core/PowerPC/Jit64/JitRegCache.h" +#include "Core/PowerPC/JitCommon/Jit_Util.h" #include "Core/PowerPC/JitCommon/JitAsmCommon.h" using namespace Gen; diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_Paired.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_Paired.cpp index e3e4c9ace8..0ee03cf905 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_Paired.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_Paired.cpp @@ -4,7 +4,9 @@ #include "Common/CommonTypes.h" #include "Common/CPUDetect.h" - +#include "Common/MsgHandler.h" +#include "Common/x64Emitter.h" +#include "Core/ConfigManager.h" #include "Core/PowerPC/Jit64/Jit.h" #include "Core/PowerPC/Jit64/JitRegCache.h" diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp index f048014b20..8d14610f4b 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp @@ -2,12 +2,15 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/BitSet.h" #include "Common/CommonTypes.h" - +#include "Common/x64Emitter.h" +#include "Core/CoreTiming.h" #include "Core/HW/ProcessorInterface.h" -#include "Core/HW/SystemTimers.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Jit64/Jit.h" #include "Core/PowerPC/Jit64/JitRegCache.h" +#include "Core/PowerPC/JitCommon/Jit_Util.h" using namespace Gen; diff --git a/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp b/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp index 5165339aaf..0fba07fa96 100644 --- a/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp +++ b/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp @@ -2,12 +2,16 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/Assert.h" +#include "Common/CommonTypes.h" #include "Common/JitRegister.h" #include "Common/MathUtil.h" #include "Common/x64ABI.h" #include "Common/x64Emitter.h" - +#include "Core/HW/GPFifo.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Jit64Common/Jit64AsmCommon.h" +#include "Core/PowerPC/JitCommon/Jit_Util.h" #include "Core/PowerPC/JitCommon/JitBase.h" #define QUANTIZED_REGS_TO_SAVE \ diff --git a/Source/Core/Core/PowerPC/Jit64IL/IR_X86.cpp b/Source/Core/Core/PowerPC/Jit64IL/IR_X86.cpp index f21b12b944..c05b3052bd 100644 --- a/Source/Core/Core/PowerPC/Jit64IL/IR_X86.cpp +++ b/Source/Core/Core/PowerPC/Jit64IL/IR_X86.cpp @@ -25,12 +25,19 @@ The register allocation is linear scan allocation. #endif #include +#include #include "Common/BitSet.h" +#include "Common/CommonTypes.h" #include "Common/CPUDetect.h" #include "Common/MathUtil.h" +#include "Common/MsgHandler.h" +#include "Common/x64ABI.h" +#include "Common/x64Emitter.h" +#include "Core/CoreTiming.h" #include "Core/HW/ProcessorInterface.h" #include "Core/PowerPC/Gekko.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Jit64IL/JitIL.h" using namespace IREmitter; diff --git a/Source/Core/Core/PowerPC/Jit64IL/JitIL.cpp b/Source/Core/Core/PowerPC/Jit64IL/JitIL.cpp index 036e765145..72cb76270e 100644 --- a/Source/Core/Core/PowerPC/Jit64IL/JitIL.cpp +++ b/Source/Core/Core/PowerPC/Jit64IL/JitIL.cpp @@ -7,13 +7,17 @@ #include #include #include +#include -#include "Common/Common.h" +#include "Common/CommonTypes.h" #include "Common/FileUtil.h" #include "Common/Intrinsics.h" #include "Common/StringUtil.h" +#include "Common/x64ABI.h" +#include "Common/Logging/Log.h" #include "Core/PatchEngine.h" #include "Core/HLE/HLE.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Profiler.h" #include "Core/PowerPC/Jit64IL/JitIL.h" #include "Core/PowerPC/Jit64IL/JitIL_Tables.h" diff --git a/Source/Core/Core/PowerPC/Jit64IL/JitIL.h b/Source/Core/Core/PowerPC/Jit64IL/JitIL.h index e9c59fe3e4..3fd7b8d7e2 100644 --- a/Source/Core/Core/PowerPC/Jit64IL/JitIL.h +++ b/Source/Core/Core/PowerPC/Jit64IL/JitIL.h @@ -16,23 +16,13 @@ #pragma once -#include "Common/x64ABI.h" -#include "Common/x64Analyzer.h" +#include "Common/CommonTypes.h" #include "Common/x64Emitter.h" - -#include "Core/ConfigManager.h" -#include "Core/Core.h" -#include "Core/CoreTiming.h" -#include "Core/HW/GPFifo.h" -#include "Core/HW/Memmap.h" -#include "Core/PowerPC/PowerPC.h" +#include "Core/PowerPC/Gekko.h" #include "Core/PowerPC/PPCAnalyst.h" -#include "Core/PowerPC/PPCTables.h" #include "Core/PowerPC/Jit64/JitAsm.h" -#include "Core/PowerPC/JitCommon/Jit_Util.h" #include "Core/PowerPC/JitCommon/JitBase.h" #include "Core/PowerPC/JitCommon/JitCache.h" -#include "Core/PowerPC/JitILCommon/IR.h" #include "Core/PowerPC/JitILCommon/JitILBase.h" class JitIL : public JitILBase diff --git a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp index 34a638bc68..8f2f7e8568 100644 --- a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp @@ -11,8 +11,11 @@ #include "Common/Logging/Log.h" #include "Core/ConfigManager.h" +#include "Core/Core.h" #include "Core/PatchEngine.h" #include "Core/HLE/HLE.h" +#include "Core/HW/GPFifo.h" +#include "Core/HW/Memmap.h" #include "Core/HW/ProcessorInterface.h" #include "Core/PowerPC/JitInterface.h" #include "Core/PowerPC/Profiler.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64Cache.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64Cache.cpp index 266941d1e6..44833004c5 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64Cache.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64Cache.cpp @@ -2,6 +2,7 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/CommonTypes.h" #include "Core/PowerPC/JitInterface.h" #include "Core/PowerPC/JitArm64/Jit.h" #include "Core/PowerPC/JitArm64/JitArm64Cache.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_BackPatch.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_BackPatch.cpp index 9b2223ddce..6f0d296a7f 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_BackPatch.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_BackPatch.cpp @@ -4,8 +4,11 @@ #include +#include "Common/BitSet.h" +#include "Common/CommonFuncs.h" #include "Common/CommonTypes.h" #include "Common/StringUtil.h" +#include "Common/Logging/Log.h" #include "Core/HW/Memmap.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Branch.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Branch.cpp index 2f5cb1b049..66519bc3c6 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Branch.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Branch.cpp @@ -3,8 +3,9 @@ // Refer to the license.txt file included. #include "Common/Arm64Emitter.h" -#include "Common/Common.h" +#include "Common/CommonTypes.h" +#include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/CoreTiming.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_FloatingPoint.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_FloatingPoint.cpp index e40f3d4917..5ad2bf8321 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_FloatingPoint.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_FloatingPoint.cpp @@ -3,9 +3,10 @@ // Refer to the license.txt file included. #include "Common/Arm64Emitter.h" -#include "Common/Common.h" +#include "Common/CommonTypes.h" #include "Common/StringUtil.h" +#include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/CoreTiming.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp index ff02a7c558..2669c719e8 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp @@ -3,8 +3,10 @@ // Refer to the license.txt file included. #include "Common/Arm64Emitter.h" -#include "Common/Common.h" +#include "Common/Assert.h" +#include "Common/CommonTypes.h" +#include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/CoreTiming.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStore.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStore.cpp index e4cd492af6..d5f8f4747a 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStore.cpp @@ -3,12 +3,15 @@ // Refer to the license.txt file included. #include "Common/Arm64Emitter.h" -#include "Common/Common.h" +#include "Common/BitSet.h" +#include "Common/CommonTypes.h" +#include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/CoreTiming.h" +#include "Core/HW/GPFifo.h" +#include "Core/HW/Memmap.h" #include "Core/HW/MMIO.h" - #include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PPCTables.h" #include "Core/PowerPC/JitArm64/Jit.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStoreFloating.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStoreFloating.cpp index 6a2a2ce38f..979296474f 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStoreFloating.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStoreFloating.cpp @@ -2,11 +2,16 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. -#include "Common/Arm64Emitter.h" -#include "Common/Common.h" +#include +#include "Common/Arm64Emitter.h" +#include "Common/BitSet.h" +#include "Common/CommonTypes.h" + +#include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/CoreTiming.h" +#include "Core/HW/GPFifo.h" #include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PPCTables.h" #include "Core/PowerPC/JitArm64/Jit.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStorePaired.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStorePaired.cpp index bd2574d2c7..0f2e51f616 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStorePaired.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_LoadStorePaired.cpp @@ -3,9 +3,11 @@ // Refer to the license.txt file included. #include "Common/Arm64Emitter.h" -#include "Common/Common.h" +#include "Common/BitSet.h" +#include "Common/CommonTypes.h" #include "Common/StringUtil.h" +#include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/CoreTiming.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Paired.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Paired.cpp index 9178b7fb5a..8b774978cd 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Paired.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Paired.cpp @@ -3,9 +3,10 @@ // Refer to the license.txt file included. #include "Common/Arm64Emitter.h" -#include "Common/Common.h" +#include "Common/CommonTypes.h" #include "Common/StringUtil.h" +#include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/CoreTiming.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.cpp index f0bba4bb48..f08f7605e3 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.cpp @@ -2,6 +2,10 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/Assert.h" +#include "Common/BitSet.h" +#include "Common/CommonTypes.h" +#include "Common/Logging/Log.h" #include "Core/PowerPC/JitArm64/Jit.h" #include "Core/PowerPC/JitArm64/JitArm64_RegCache.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_SystemRegisters.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_SystemRegisters.cpp index 2293b0f012..efeddfd89f 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_SystemRegisters.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_SystemRegisters.cpp @@ -3,8 +3,10 @@ // Refer to the license.txt file included. #include "Common/Arm64Emitter.h" -#include "Common/Common.h" +#include "Common/Assert.h" +#include "Common/CommonTypes.h" +#include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/CoreTiming.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/JitAsm.cpp b/Source/Core/Core/PowerPC/JitArm64/JitAsm.cpp index 18274ff78f..73f2862f6d 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitAsm.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitAsm.cpp @@ -3,8 +3,10 @@ // Refer to the license.txt file included. #include "Common/Arm64Emitter.h" +#include "Common/CommonTypes.h" #include "Common/JitRegister.h" - +#include "Core/CoreTiming.h" +#include "Core/HW/Memmap.h" #include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/JitArm64/Jit.h" #include "Core/PowerPC/JitArm64/JitAsm.h" diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBackpatch.cpp b/Source/Core/Core/PowerPC/JitCommon/JitBackpatch.cpp index fcfb6d4db1..a9303636cd 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBackpatch.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/JitBackpatch.cpp @@ -3,9 +3,18 @@ // Refer to the license.txt file included. #include +#include #include "disasm.h" +#include "Common/Assert.h" +#include "Common/BitSet.h" +#include "Common/CommonFuncs.h" +#include "Common/CommonTypes.h" +#include "Common/MsgHandler.h" +#include "Common/x64Analyzer.h" +#include "Common/x64Emitter.h" +#include "Core/HW/Memmap.h" #include "Core/PowerPC/JitCommon/JitBase.h" using namespace Gen; diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp b/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp index e8d5c4f004..89da8cef31 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/JitBase.cpp @@ -10,7 +10,10 @@ #include "Common/CommonTypes.h" #include "Common/GekkoDisassembler.h" #include "Common/StringUtil.h" +#include "Common/Logging/Log.h" #include "Core/ConfigManager.h" +#include "Core/PowerPC/PowerPC.h" +#include "Core/PowerPC/PPCAnalyst.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 f8f5b220af..1878aed5ae 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBase.h +++ b/Source/Core/Core/PowerPC/JitCommon/JitBase.h @@ -10,20 +10,12 @@ #include -#include "Common/x64ABI.h" -#include "Common/x64Analyzer.h" +#include "Common/CommonTypes.h" #include "Common/x64Emitter.h" - #include "Core/ConfigManager.h" -#include "Core/Core.h" -#include "Core/CoreTiming.h" #include "Core/MachineContext.h" -#include "Core/HW/GPFifo.h" -#include "Core/HW/Memmap.h" #include "Core/PowerPC/CPUCoreBase.h" -#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PPCAnalyst.h" -#include "Core/PowerPC/PPCTables.h" #include "Core/PowerPC/Jit64Common/Jit64AsmCommon.h" #include "Core/PowerPC/JitCommon/Jit_Util.h" #include "Core/PowerPC/JitCommon/JitCache.h" diff --git a/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp b/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp index 661a00120f..61034fbf82 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/JitCache.cpp @@ -18,6 +18,7 @@ #include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/PowerPC/JitInterface.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/JitCommon/JitBase.h" #ifdef _WIN32 diff --git a/Source/Core/Core/PowerPC/JitCommon/JitCache.h b/Source/Core/Core/PowerPC/JitCommon/JitCache.h index 837a36d933..5c716f5800 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitCache.h +++ b/Source/Core/Core/PowerPC/JitCommon/JitCache.h @@ -10,8 +10,7 @@ #include #include -#include "Core/PowerPC/Gekko.h" -#include "Core/PowerPC/PPCAnalyst.h" +#include "Common/CommonTypes.h" static const u32 JIT_ICACHE_SIZE = 0x2000000; static const u32 JIT_ICACHE_MASK = 0x1ffffff; diff --git a/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp b/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp index 46b270d8e0..3797fa979d 100644 --- a/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/Jit_Util.cpp @@ -2,11 +2,15 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/BitSet.h" #include "Common/CommonTypes.h" #include "Common/Intrinsics.h" #include "Common/MathUtil.h" - +#include "Common/x64ABI.h" +#include "Common/x64Emitter.h" +#include "Core/HW/Memmap.h" #include "Core/HW/MMIO.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/JitCommon/Jit_Util.h" #include "Core/PowerPC/JitCommon/JitBase.h" diff --git a/Source/Core/Core/PowerPC/JitCommon/Jit_Util.h b/Source/Core/Core/PowerPC/JitCommon/Jit_Util.h index fe10691192..4915206786 100644 --- a/Source/Core/Core/PowerPC/JitCommon/Jit_Util.h +++ b/Source/Core/Core/PowerPC/JitCommon/Jit_Util.h @@ -9,6 +9,7 @@ #include "Common/BitSet.h" #include "Common/CPUDetect.h" #include "Common/x64Emitter.h" +#include "Core/PowerPC/PowerPC.h" namespace MMIO { class Mapping; } diff --git a/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.cpp b/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.cpp index f9b7e219e2..efc1add7a8 100644 --- a/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.cpp @@ -5,11 +5,14 @@ #include #include +#include "Common/CommonFuncs.h" #include "Common/CommonTypes.h" #include "Common/JitRegister.h" -#include "Common/StringUtil.h" #include "Common/x64ABI.h" -#include "Core/HW/Memmap.h" +#include "Common/x64Analyzer.h" +#include "Common/x64Emitter.h" +#include "Core/PowerPC/PowerPC.h" +#include "Core/PowerPC/JitCommon/Jit_Util.h" #include "Core/PowerPC/JitCommon/JitBase.h" #include "Core/PowerPC/JitCommon/TrampolineCache.h" diff --git a/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.h b/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.h index c5744849c8..f6efc5b3b4 100644 --- a/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.h +++ b/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.h @@ -4,13 +4,12 @@ #pragma once -#include - #include "Common/BitSet.h" #include "Common/CommonTypes.h" -#include "Common/x64Analyzer.h" #include "Common/x64Emitter.h" +struct InstructionInfo; + // We need at least this many bytes for backpatching. const int BACKPATCH_SIZE = 5; diff --git a/Source/Core/Core/PowerPC/JitILCommon/IR.cpp b/Source/Core/Core/PowerPC/JitILCommon/IR.cpp index 824ce44d87..f65c852121 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/IR.cpp +++ b/Source/Core/Core/PowerPC/JitILCommon/IR.cpp @@ -126,14 +126,12 @@ TODO (in no particular order): #include #include +#include "Common/CommonTypes.h" #include "Common/FileUtil.h" #include "Common/StringUtil.h" -#include "Core/Core.h" -#include "Core/CoreTiming.h" -#include "Core/HW/GPFifo.h" -#include "Core/HW/Memmap.h" -#include "Core/PowerPC/PPCTables.h" +#include "Common/x64Emitter.h" #include "Core/PowerPC/JitILCommon/IR.h" + using namespace Gen; namespace IREmitter diff --git a/Source/Core/Core/PowerPC/JitILCommon/IR.h b/Source/Core/Core/PowerPC/JitILCommon/IR.h index 53339be7eb..31107ccce9 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/IR.h +++ b/Source/Core/Core/PowerPC/JitILCommon/IR.h @@ -6,7 +6,7 @@ #include -#include "Common/x64Emitter.h" +#include "Common/CommonTypes.h" namespace IREmitter { diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h b/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h index f7ed6ce49f..7c15c1c226 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h @@ -4,14 +4,9 @@ #pragma once -#include "Core/ConfigManager.h" -#include "Core/Core.h" -#include "Core/CoreTiming.h" -#include "Core/HW/GPFifo.h" -#include "Core/HW/Memmap.h" -#include "Core/PowerPC/PowerPC.h" +#include "Common/CommonTypes.h" +#include "Core/PowerPC/Gekko.h" #include "Core/PowerPC/PPCAnalyst.h" -#include "Core/PowerPC/PPCTables.h" #include "Core/PowerPC/JitCommon/JitBase.h" #include "Core/PowerPC/JitILCommon/IR.h" diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Branch.cpp b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Branch.cpp index 4c2aaad8ae..f67ff7fe15 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Branch.cpp +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Branch.cpp @@ -3,6 +3,9 @@ // Refer to the license.txt file included. #include "Common/CommonTypes.h" +#include "Core/ConfigManager.h" +#include "Core/PowerPC/Gekko.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/JitILCommon/JitILBase.h" diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_FloatingPoint.cpp b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_FloatingPoint.cpp index bc89b6471f..82eb3be68f 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_FloatingPoint.cpp +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_FloatingPoint.cpp @@ -2,7 +2,10 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/Assert.h" #include "Common/CommonTypes.h" +#include "Common/MsgHandler.h" +#include "Core/ConfigManager.h" #include "Core/PowerPC/JitILCommon/JitILBase.h" void JitILBase::fp_arith_s(UGeckoInstruction inst) diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Integer.cpp b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Integer.cpp index 0a79fb0ca4..a0a6a9abeb 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Integer.cpp +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Integer.cpp @@ -6,6 +6,8 @@ #pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned #endif +#include "Common/CommonTypes.h" +#include "Core/ConfigManager.h" #include "Core/PowerPC/JitILCommon/JitILBase.h" static void ComputeRC(IREmitter::IRBuilder& ibuild, IREmitter::InstLoc val) diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStore.cpp b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStore.cpp index b6fca9ecb3..f47756d861 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStore.cpp @@ -2,7 +2,10 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/Assert.h" #include "Common/CommonTypes.h" +#include "Core/ConfigManager.h" +#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/JitILCommon/JitILBase.h" void JitILBase::lhax(UGeckoInstruction inst) diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStoreFloating.cpp b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStoreFloating.cpp index 8c062813ee..65c5634d30 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStoreFloating.cpp +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStoreFloating.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include "Common/CommonTypes.h" +#include "Core/ConfigManager.h" #include "Core/PowerPC/JitILCommon/JitILBase.h" // TODO: Add peephole optimizations for multiple consecutive lfd/lfs/stfd/stfs since they are so common, diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStorePaired.cpp b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStorePaired.cpp index 192f7d3567..4e33912510 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStorePaired.cpp +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_LoadStorePaired.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include "Common/CommonTypes.h" +#include "Core/ConfigManager.h" #include "Core/PowerPC/JitILCommon/JitILBase.h" void JitILBase::psq_st(UGeckoInstruction inst) diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Paired.cpp b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Paired.cpp index 5b76d90e6f..d8817eb347 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Paired.cpp +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_Paired.cpp @@ -2,7 +2,9 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "Common/Assert.h" #include "Common/CommonTypes.h" +#include "Core/ConfigManager.h" #include "Core/PowerPC/JitILCommon/JitILBase.h" void JitILBase::ps_arith(UGeckoInstruction inst) diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_SystemRegisters.cpp b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_SystemRegisters.cpp index e807aa5023..e30a500111 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase_SystemRegisters.cpp +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase_SystemRegisters.cpp @@ -3,7 +3,8 @@ // Refer to the license.txt file included. #include "Common/CommonTypes.h" -#include "Core/HW/SystemTimers.h" +#include "Common/MsgHandler.h" +#include "Core/ConfigManager.h" #include "Core/PowerPC/JitILCommon/JitILBase.h" void JitILBase::mtspr(UGeckoInstruction inst) diff --git a/Source/Core/Core/PowerPC/JitInterface.cpp b/Source/Core/Core/PowerPC/JitInterface.cpp index 96689c415a..5bc3323a1f 100644 --- a/Source/Core/Core/PowerPC/JitInterface.cpp +++ b/Source/Core/Core/PowerPC/JitInterface.cpp @@ -13,7 +13,7 @@ #endif #include "Core/ConfigManager.h" -#include "Core/HW/Memmap.h" +#include "Core/Core.h" #include "Core/PowerPC/CachedInterpreter.h" #include "Core/PowerPC/JitInterface.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/Core/PowerPC/PPCCache.cpp b/Source/Core/Core/PowerPC/PPCCache.cpp index 7244e775bb..f32c585454 100644 --- a/Source/Core/Core/PowerPC/PPCCache.cpp +++ b/Source/Core/Core/PowerPC/PPCCache.cpp @@ -2,13 +2,13 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include + #include "Common/CommonFuncs.h" #include "Core/HW/Memmap.h" #include "Core/PowerPC/JitInterface.h" #include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PPCCache.h" -#include "Core/PowerPC/JitCommon/JitBase.h" -#include "Core/PowerPC/JitCommon/JitCache.h" namespace PowerPC { diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index 4c12f0e5e9..99e712812f 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -2,9 +2,12 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include #include #include #include +#include +#include #include #include "Common/CommonTypes.h" @@ -22,14 +25,9 @@ #include "Core/Movie.h" #include "Core/NetPlayClient.h" #include "Core/State.h" -#include "Core/HW/CPU.h" -#include "Core/HW/DSP.h" #include "Core/HW/HW.h" -#include "Core/HW/Memmap.h" -#include "Core/HW/SystemTimers.h" -#include "Core/HW/VideoInterface.h" #include "Core/HW/Wiimote.h" -#include "Core/PowerPC/JitCommon/JitBase.h" +#include "Core/PowerPC/PowerPC.h" #include "VideoCommon/AVIDump.h" #include "VideoCommon/OnScreenDisplay.h"