jit: branch instructions

This commit is contained in:
RSDuck
2019-07-11 16:22:47 +02:00
parent ff97211114
commit c58fdbd66b
10 changed files with 364 additions and 188 deletions

View File

@ -121,7 +121,7 @@ void DeInit()
delete compiler;
}
void CompileBlock(ARM* cpu)
CompiledBlock CompileBlock(ARM* cpu)
{
bool thumb = cpu->CPSR & 0x20;
@ -171,6 +171,8 @@ void CompileBlock(ARM* cpu)
CompiledBlock block = compiler->CompileBlock(cpu, instrs, i);
InsertBlock(cpu->Num, r15Initial - (thumb ? 2 : 4), block);
return block;
}
void ResetBlocks()