mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 02:36:27 +01:00
[AArch64] Implements HLE function injection
This commit is contained in:
parent
51ad798105
commit
8dfb8d8ad5
@ -59,8 +59,17 @@ void JitArm64::FallBackToInterpreter(UGeckoInstruction inst)
|
|||||||
|
|
||||||
void JitArm64::HLEFunction(UGeckoInstruction inst)
|
void JitArm64::HLEFunction(UGeckoInstruction inst)
|
||||||
{
|
{
|
||||||
WARN_LOG(DYNA_REC, "HLEFunction %08x - Fix me ;)", inst.hex);
|
gpr.Flush(FlushMode::FLUSH_ALL);
|
||||||
exit(0);
|
fpr.Flush(FlushMode::FLUSH_ALL);
|
||||||
|
|
||||||
|
MOVI2R(W0, js.compilerPC);
|
||||||
|
MOVI2R(W1, inst.hex);
|
||||||
|
MOVI2R(X30, (u64)&HLE::Execute);
|
||||||
|
BLR(X30);
|
||||||
|
|
||||||
|
ARM64Reg WA = gpr.GetReg();
|
||||||
|
LDR(INDEX_UNSIGNED, WA, X29, PPCSTATE_OFF(npc));
|
||||||
|
WriteExitDestInR(WA);
|
||||||
}
|
}
|
||||||
|
|
||||||
void JitArm64::DoNothing(UGeckoInstruction inst)
|
void JitArm64::DoNothing(UGeckoInstruction inst)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user