Play around with function replacement. Turned off by default of course.

This commit is contained in:
Henrik Rydgard committed 2013-12-17 23:40:27 +01:00
1 parent 832c933cb8
commit 2eab4aa1bf
25 files changed
+458 -96

No files matched your search

+3 -1
View File
@@ -173,7 +173,7 @@ void Clear()
Opcode Read_Instruction(u32 address)
{
Opcode inst = Opcode(Read_U32(address));
if (MIPS_IS_EMUHACK(inst) && MIPSComp::jit)
if (MIPS_IS_RUNBLOCK(inst) && MIPSComp::jit)
{
JitBlockCache *bc = MIPSComp::jit->GetBlockCache();
int block_num = bc->GetBlockNumberFromEmuHackOp(inst, true);
@@ -182,6 +182,8 @@ Opcode Read_Instruction(u32 address)
} else {
return inst;
}
} else if (MIPS_IS_REPLACEMENT(inst)) {
return inst;
} else {
return inst;
}