mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-24 23:03:35 +01:00
Spend a bit less time in Read_Instruction on load.
This commit is contained in:
1 parent
e3506ead69
commit
eca06c60c7
5 files changed
+27
-5
No files matched your search
+17
-2
@@ -176,9 +176,12 @@ void Clear()
|
||||
memset(m_pVRAM, 0, VRAM_SIZE);
|
||||
}
|
||||
|
||||
Opcode Read_Instruction(u32 address, bool resolveReplacements)
|
||||
static Opcode Read_Instruction(u32 address, bool resolveReplacements, Opcode inst)
|
||||
{
|
||||
Opcode inst = Opcode(Read_U32(address));
|
||||
if (!MIPS_IS_EMUHACK(inst.encoding)) {
|
||||
return inst;
|
||||
}
|
||||
|
||||
if (MIPS_IS_RUNBLOCK(inst.encoding) && MIPSComp::jit) {
|
||||
JitBlockCache *bc = MIPSComp::jit->GetBlockCache();
|
||||
int block_num = bc->GetBlockNumberFromEmuHackOp(inst, true);
|
||||
@@ -218,6 +221,18 @@ Opcode Read_Instruction(u32 address, bool resolveReplacements)
|
||||
}
|
||||
}
|
||||
|
||||
Opcode Read_Instruction(u32 address, bool resolveReplacements)
|
||||
{
|
||||
Opcode inst = Opcode(Read_U32(address));
|
||||
return Read_Instruction(address, resolveReplacements, inst);
|
||||
}
|
||||
|
||||
Opcode ReadUnchecked_Instruction(u32 address, bool resolveReplacements)
|
||||
{
|
||||
Opcode inst = Opcode(ReadUnchecked_U32(address));
|
||||
return Read_Instruction(address, resolveReplacements, inst);
|
||||
}
|
||||
|
||||
Opcode Read_Opcode_JIT(u32 address)
|
||||
{
|
||||
Opcode inst = Opcode(Read_U32(address));
|
||||
|
||||
Reference in new issue
Block a user