From 824eb370e4bbf8f4b90279b0488b65bff2bda683 Mon Sep 17 00:00:00 2001 From: Jesse Talavera Date: Mon, 19 Aug 2024 09:21:34 -0400 Subject: [PATCH] Fix the build when the JIT is disabled (#2139) --- src/ARM.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ARM.cpp b/src/ARM.cpp index 3452d361..4cf70749 100644 --- a/src/ARM.cpp +++ b/src/ARM.cpp @@ -609,6 +609,7 @@ void ARMv5::Execute() while (NDS.ARM9Timestamp < NDS.ARM9Target) { +#ifdef JIT_ENABLED if constexpr (mode == CPUExecuteMode::JIT) { u32 instrAddr = R[15] - ((CPSR&0x20)?2:4); @@ -647,6 +648,7 @@ void ARMv5::Execute() } } else +#endif { if (CPSR & 0x20) // THUMB { @@ -747,6 +749,7 @@ void ARMv4::Execute() while (NDS.ARM7Timestamp < NDS.ARM7Target) { +#ifdef JIT_ENABLED if constexpr (mode == CPUExecuteMode::JIT) { u32 instrAddr = R[15] - ((CPSR&0x20)?2:4); @@ -784,6 +787,7 @@ void ARMv4::Execute() } } else +#endif { if (CPSR & 0x20) // THUMB {