Skip to content

Commit

Permalink
Fix the build when the JIT is disabled (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG authored Aug 19, 2024
1 parent 0e6235a commit 824eb37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ARM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -647,6 +648,7 @@ void ARMv5::Execute()
}
}
else
#endif
{
if (CPSR & 0x20) // THUMB
{
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -784,6 +787,7 @@ void ARMv4::Execute()
}
}
else
#endif
{
if (CPSR & 0x20) // THUMB
{
Expand Down

0 comments on commit 824eb37

Please sign in to comment.