JIT: Get rid of one memory access per dispatch, and get rid of blockcodepointers.

This commit is contained in:
Henrik Rydgard committed 2013-04-27 01:32:03 +02:00
1 parent 9eace8a80e
commit 2a39a3b972
10 files changed
+94 -60

No files matched your search

+5 -2
View File
@@ -115,9 +115,12 @@ u32 Read_Instruction(u32 address)
{
u32 inst = Read_U32(address);
if (MIPS_IS_EMUHACK(inst) && MIPSComp::jit)
return MIPSComp::jit->GetBlockCache()->GetOriginalFirstOp(inst & MIPS_EMUHACK_VALUE_MASK);
else
{
JitBlockCache *bc = MIPSComp::jit->GetBlockCache();
return bc->GetOriginalFirstOp(bc->GetBlockNumberFromEmuHackOp(inst));
} else {
return inst;
}
}
u32 Read_Opcode_JIT(u32 address)