aboutsummaryrefslogtreecommitdiff
path: root/src/ARM.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ARM.cpp')
-rw-r--r--src/ARM.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ARM.cpp b/src/ARM.cpp
index 420257a..f7ca26d 100644
--- a/src/ARM.cpp
+++ b/src/ARM.cpp
@@ -522,8 +522,9 @@ void ARMv5::Execute()
ARMJIT::CompiledBlock block = ARMJIT::LookUpBlock(0, R[15] - ((CPSR&0x20)?2:4));
if (block == NULL)
- block = ARMJIT::CompileBlock(this);
- Cycles += block();
+ ARMJIT::CompileBlock(this);
+ else
+ Cycles += block();
// TODO optimize this shit!!!
if (Halted)
@@ -607,8 +608,9 @@ void ARMv4::Execute()
ARMJIT::CompiledBlock block = ARMJIT::LookUpBlock(1, R[15] - ((CPSR&0x20)?2:4));
if (block == NULL)
- block = ARMJIT::CompileBlock(this);
- Cycles += block();
+ ARMJIT::CompileBlock(this);
+ else
+ Cycles += block();
// TODO optimize this shit!!!
if (Halted)