From aa29201e00ca764aeb43d743469ff9cef79f645b Mon Sep 17 00:00:00 2001 From: Lioncache Date: Tue, 2 Sep 2025 12:00:30 -0400 Subject: [PATCH] Dispatcher: Reduce header dependencies Gets rid of some unnecessary dependencies and also resolves some indirect dependencies. --- FEXCore/Source/Interface/Context/Context.h | 1 + .../Source/Interface/Core/Dispatcher/Dispatcher.cpp | 7 ++++++- .../Source/Interface/Core/Dispatcher/Dispatcher.h | 12 ++---------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/FEXCore/Source/Interface/Context/Context.h b/FEXCore/Source/Interface/Context/Context.h index fd77939c9..94660403d 100644 --- a/FEXCore/Source/Interface/Context/Context.h +++ b/FEXCore/Source/Interface/Context/Context.h @@ -2,6 +2,7 @@ #pragma once #include "Common/JitSymbols.h" +#include "Interface/Core/CPUBackend.h" #include "Interface/Core/CPUID.h" #include "Interface/Core/X86HelperGen.h" #include "Interface/Core/Dispatcher/Dispatcher.h" diff --git a/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.cpp b/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.cpp index 2c0c6de34..ab251ccf0 100644 --- a/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.cpp +++ b/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.cpp @@ -2,6 +2,7 @@ #include "Common/SoftFloat.h" #include "Interface/Context/Context.h" +#include "Interface/Core/CPUBackend.h" #include "Interface/Core/Dispatcher/Dispatcher.h" #include "Interface/Core/LookupCache.h" #include "Interface/Core/X86HelperGen.h" @@ -19,12 +20,16 @@ #include +#ifdef VIXL_SIMULATOR +#include +#endif + #include #include +#include #include #include #include -#include namespace FEXCore::CPU { diff --git a/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.h b/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.h index 8545a62de..30f85b51a 100644 --- a/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.h +++ b/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.h @@ -2,21 +2,13 @@ #pragma once #include "Interface/Core/ArchHelpers/Arm64Emitter.h" -#include "Interface/Core/CPUBackend.h" #include "Interface/Core/Interpreter/InterpreterOps.h" -#include #include -#ifdef VIXL_SIMULATOR -#include -#endif - +#include +#include #include -#include -#include -#include -#include namespace FEXCore { struct GuestSigAction;