From 2561028b911321949ea719cd80237213f00790bd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 3 May 2023 21:32:13 -0400 Subject: [PATCH] PPCTables: Remove unnecessary includes Gets rid of a lingering dependency on the interpreter in common code and a bunch of indirect inclusions. --- .../Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp | 1 + Source/Core/Core/PowerPC/Jit64/Jit.cpp | 1 + Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp | 1 + Source/Core/Core/PowerPC/JitArm64/Jit.cpp | 1 + Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp | 1 + Source/Core/Core/PowerPC/JitCommon/JitBase.h | 3 ++- Source/Core/Core/PowerPC/PPCTables.cpp | 1 - Source/Core/Core/PowerPC/PPCTables.h | 5 ----- 8 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp b/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp index 28ee8fd77e..34f7d51593 100644 --- a/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp +++ b/Source/Core/Core/PowerPC/CachedInterpreter/CachedInterpreter.cpp @@ -10,6 +10,7 @@ #include "Core/HLE/HLE.h" #include "Core/HW/CPU.h" #include "Core/PowerPC/Gekko.h" +#include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/Jit64Common/Jit64Constants.h" #include "Core/PowerPC/PPCAnalyst.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/Core/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/PowerPC/Jit64/Jit.cpp index c23414e930..b0fb49ef12 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit.cpp @@ -32,6 +32,7 @@ #include "Core/HW/ProcessorInterface.h" #include "Core/MachineContext.h" #include "Core/PatchEngine.h" +#include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/Jit64/JitAsm.h" #include "Core/PowerPC/Jit64/RegCache/JitRegCache.h" #include "Core/PowerPC/Jit64Common/FarCodeCache.h" diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp index fb8e8fbaef..17d195da54 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp @@ -17,6 +17,7 @@ #include "Core/CoreTiming.h" #include "Core/PowerPC/Interpreter/ExceptionUtils.h" +#include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/Jit64/RegCache/JitRegCache.h" #include "Core/PowerPC/Jit64Common/Jit64PowerPCState.h" #include "Core/PowerPC/JitCommon/DivUtils.h" diff --git a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp index 4f1c81316f..f3da048442 100644 --- a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp @@ -22,6 +22,7 @@ #include "Core/HW/Memmap.h" #include "Core/HW/ProcessorInterface.h" #include "Core/PatchEngine.h" +#include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/JitArm64/JitArm64_RegCache.h" #include "Core/PowerPC/JitInterface.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 1accdff380..26848d8d9c 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp @@ -13,6 +13,7 @@ #include "Core/Core.h" #include "Core/CoreTiming.h" +#include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/JitArm64/JitArm64_RegCache.h" #include "Core/PowerPC/JitCommon/DivUtils.h" #include "Core/PowerPC/PPCTables.h" diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBase.h b/Source/Core/Core/PowerPC/JitCommon/JitBase.h index 70c72ef105..e6488960e7 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBase.h +++ b/Source/Core/Core/PowerPC/JitCommon/JitBase.h @@ -23,8 +23,9 @@ class System; } namespace PowerPC { +class MMU; struct PowerPCState; -} +} // namespace PowerPC //#define JIT_LOG_GENERATED_CODE // Enables logging of generated code //#define JIT_LOG_GPR // Enables logging of the PPC general purpose regs diff --git a/Source/Core/Core/PowerPC/PPCTables.cpp b/Source/Core/Core/PowerPC/PPCTables.cpp index bf9392516b..79ff5444a7 100644 --- a/Source/Core/Core/PowerPC/PPCTables.cpp +++ b/Source/Core/Core/PowerPC/PPCTables.cpp @@ -19,7 +19,6 @@ #include "Common/StringUtil.h" #include "Common/TypeUtils.h" -#include "Core/PowerPC/Interpreter/Interpreter.h" #include "Core/PowerPC/PowerPC.h" namespace PPCTables diff --git a/Source/Core/Core/PowerPC/PPCTables.h b/Source/Core/Core/PowerPC/PPCTables.h index 33a6e2a9fb..00d4baaf9f 100644 --- a/Source/Core/Core/PowerPC/PPCTables.h +++ b/Source/Core/Core/PowerPC/PPCTables.h @@ -3,13 +3,8 @@ #pragma once -#include -#include -#include - #include "Common/CommonTypes.h" #include "Core/PowerPC/Gekko.h" -#include "Core/PowerPC/Interpreter/Interpreter.h" // Flags that indicate what an instruction can do. enum InstructionFlags : u64