Jit64[IL]: drop WriteCallInterpreter
This commit is contained in:
parent
c0f80ca524
commit
334c1bfdf6
|
@ -231,8 +231,7 @@ void Jit64::Shutdown()
|
||||||
farcode.Shutdown();
|
farcode.Shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is only called by FallBackToInterpreter() in this file. It will execute an instruction with the interpreter functions.
|
void Jit64::FallBackToInterpreter(UGeckoInstruction inst)
|
||||||
void Jit64::WriteCallInterpreter(UGeckoInstruction inst)
|
|
||||||
{
|
{
|
||||||
gpr.Flush();
|
gpr.Flush();
|
||||||
fpr.Flush();
|
fpr.Flush();
|
||||||
|
@ -247,11 +246,6 @@ void Jit64::WriteCallInterpreter(UGeckoInstruction inst)
|
||||||
ABI_PopRegistersAndAdjustStack({}, 0);
|
ABI_PopRegistersAndAdjustStack({}, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Jit64::FallBackToInterpreter(UGeckoInstruction _inst)
|
|
||||||
{
|
|
||||||
WriteCallInterpreter(_inst.hex);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Jit64::HLEFunction(UGeckoInstruction _inst)
|
void Jit64::HLEFunction(UGeckoInstruction _inst)
|
||||||
{
|
{
|
||||||
gpr.Flush();
|
gpr.Flush();
|
||||||
|
|
|
@ -104,7 +104,6 @@ public:
|
||||||
void WriteExceptionExit();
|
void WriteExceptionExit();
|
||||||
void WriteExternalExceptionExit();
|
void WriteExternalExceptionExit();
|
||||||
void WriteRfiExitDestInRSCRATCH();
|
void WriteRfiExitDestInRSCRATCH();
|
||||||
void WriteCallInterpreter(UGeckoInstruction _inst);
|
|
||||||
bool Cleanup();
|
bool Cleanup();
|
||||||
|
|
||||||
void GenerateConstantOverflow(bool overflow);
|
void GenerateConstantOverflow(bool overflow);
|
||||||
|
|
|
@ -288,23 +288,6 @@ void JitIL::Shutdown()
|
||||||
farcode.Shutdown();
|
farcode.Shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void JitIL::WriteCallInterpreter(UGeckoInstruction inst)
|
|
||||||
{
|
|
||||||
if (js.isLastInstruction)
|
|
||||||
{
|
|
||||||
MOV(32, PPCSTATE(pc), Imm32(js.compilerPC));
|
|
||||||
MOV(32, PPCSTATE(npc), Imm32(js.compilerPC + 4));
|
|
||||||
}
|
|
||||||
Interpreter::_interpreterInstruction instr = GetInterpreterOp(inst);
|
|
||||||
ABI_CallFunctionC((void*)instr, inst.hex);
|
|
||||||
if (js.isLastInstruction)
|
|
||||||
{
|
|
||||||
MOV(32, R(RSCRATCH), PPCSTATE(npc));
|
|
||||||
WriteRfiExitDestInOpArg(R(RSCRATCH));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void JitIL::FallBackToInterpreter(UGeckoInstruction _inst)
|
void JitIL::FallBackToInterpreter(UGeckoInstruction _inst)
|
||||||
{
|
{
|
||||||
ibuild.EmitFallBackToInterpreter(
|
ibuild.EmitFallBackToInterpreter(
|
||||||
|
|
|
@ -82,7 +82,6 @@ public:
|
||||||
void WriteExitDestInOpArg(const Gen::OpArg& arg);
|
void WriteExitDestInOpArg(const Gen::OpArg& arg);
|
||||||
void WriteExceptionExit();
|
void WriteExceptionExit();
|
||||||
void WriteRfiExitDestInOpArg(const Gen::OpArg& arg);
|
void WriteRfiExitDestInOpArg(const Gen::OpArg& arg);
|
||||||
void WriteCallInterpreter(UGeckoInstruction _inst);
|
|
||||||
void Cleanup();
|
void Cleanup();
|
||||||
|
|
||||||
void WriteCode(u32 exitAddress);
|
void WriteCode(u32 exitAddress);
|
||||||
|
|
Loading…
Reference in New Issue