From 8c751cc22f147f4b6c94192fe15b3ef6675a5f81 Mon Sep 17 00:00:00 2001 From: zilmar Date: Fri, 11 Apr 2025 18:59:30 +0930 Subject: [PATCH] rsp: fix up the code so it compiles on x86 --- Source/Project64-rsp-core/Hle/HleTask.cpp | 2 ++ Source/Project64-rsp-core/Recompiler/RspRecompilerCPU-x64.cpp | 2 +- Source/Project64-rsp-core/cpu/RspSystem.cpp | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Project64-rsp-core/Hle/HleTask.cpp b/Source/Project64-rsp-core/Hle/HleTask.cpp index 6307486e2..0e71cb710 100644 --- a/Source/Project64-rsp-core/Hle/HleTask.cpp +++ b/Source/Project64-rsp-core/Hle/HleTask.cpp @@ -270,6 +270,7 @@ bool CHleTask::ProcessHleTask(void) return false; } +#if defined(__amd64__) || defined(_M_X64) bool CHleTask::HleTaskRecompiler(void) { const TASK_INFO & TaskInfo = *((TASK_INFO *)(m_DMEM + 0xFC0)); @@ -295,3 +296,4 @@ bool CHleTask::HleTaskRecompiler(void) } return true; } +#endif \ No newline at end of file diff --git a/Source/Project64-rsp-core/Recompiler/RspRecompilerCPU-x64.cpp b/Source/Project64-rsp-core/Recompiler/RspRecompilerCPU-x64.cpp index 903b7644f..6c93f36e5 100644 --- a/Source/Project64-rsp-core/Recompiler/RspRecompilerCPU-x64.cpp +++ b/Source/Project64-rsp-core/Recompiler/RspRecompilerCPU-x64.cpp @@ -74,7 +74,6 @@ void CRSPRecompiler::CompileHLETask(uint32_t Address) CPULog->Flush(); m_CodeLog.clear(); } -#endif } void CRSPRecompiler::Log(_Printf_format_string_ const char * Text, ...) @@ -117,3 +116,4 @@ uintptr_t CRSPRecompiler::GetAddressOf(int value, ...) return (uintptr_t)Address; } +#endif diff --git a/Source/Project64-rsp-core/cpu/RspSystem.cpp b/Source/Project64-rsp-core/cpu/RspSystem.cpp index 6a4763356..6ffe45ccc 100644 --- a/Source/Project64-rsp-core/cpu/RspSystem.cpp +++ b/Source/Project64-rsp-core/cpu/RspSystem.cpp @@ -131,7 +131,9 @@ void CRSPSystem::Reset(RSP_INFO & Info) { m_SyncSystem->Reset(Info); } +#if defined(__amd64__) || defined(_M_X64) m_Recompiler.Reset(); +#endif } void CRSPSystem::RomClosed(void)