mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 05:40:15 -06:00
jit: branch instructions
This commit is contained in:
12
src/ARM.cpp
12
src/ARM.cpp
@ -564,11 +564,8 @@ void ARMv5::Execute()
|
||||
printf("aaarg ungempappter raum %x\n", R[15]);*/
|
||||
|
||||
ARMJIT::CompiledBlock block = ARMJIT::LookUpBlock(0, R[15] - ((CPSR&0x20)?2:4));
|
||||
if (block == NULL)
|
||||
ARMJIT::CompileBlock(this);
|
||||
else
|
||||
Cycles += block();
|
||||
|
||||
Cycles += (block ? block : ARMJIT::CompileBlock(this))();
|
||||
|
||||
// TODO optimize this shit!!!
|
||||
if (Halted)
|
||||
{
|
||||
@ -650,10 +647,7 @@ void ARMv4::Execute()
|
||||
printf("aaarg ungempappter raum %x\n", R[15]);*/
|
||||
|
||||
ARMJIT::CompiledBlock block = ARMJIT::LookUpBlock(1, R[15] - ((CPSR&0x20)?2:4));
|
||||
if (block == NULL)
|
||||
ARMJIT::CompileBlock(this);
|
||||
else
|
||||
Cycles += block();
|
||||
Cycles += (block ? block : ARMJIT::CompileBlock(this))();
|
||||
|
||||
// TODO optimize this shit!!!
|
||||
if (Halted)
|
||||
|
Reference in New Issue
Block a user