mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -06:00
Fix a couple of wrong cpp function pointers. (#785)
This commit is contained in:

committed by
GitHub

parent
45ea1fa990
commit
fbca47381b
@ -130,6 +130,16 @@ void Compiler::Comp_JumpTo(u32 addr, bool forceNonConstantCycles)
|
|||||||
ADD(32, MDisp(RCPU, offsetof(ARM, Cycles)), Imm8(cycles));
|
ADD(32, MDisp(RCPU, offsetof(ARM, Cycles)), Imm8(cycles));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ARMv4JumpToTrampoline(ARMv4* arm, u32 addr, bool restorecpsr)
|
||||||
|
{
|
||||||
|
arm->JumpTo(addr, restorecpsr);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ARMv5JumpToTrampoline(ARMv5* arm, u32 addr, bool restorecpsr)
|
||||||
|
{
|
||||||
|
arm->JumpTo(addr, restorecpsr);
|
||||||
|
}
|
||||||
|
|
||||||
void Compiler::Comp_JumpTo(Gen::X64Reg addr, bool restoreCPSR)
|
void Compiler::Comp_JumpTo(Gen::X64Reg addr, bool restoreCPSR)
|
||||||
{
|
{
|
||||||
IrregularCycles = true;
|
IrregularCycles = true;
|
||||||
@ -146,9 +156,9 @@ void Compiler::Comp_JumpTo(Gen::X64Reg addr, bool restoreCPSR)
|
|||||||
else
|
else
|
||||||
MOV(32, R(ABI_PARAM3), Imm32(true)); // what a waste
|
MOV(32, R(ABI_PARAM3), Imm32(true)); // what a waste
|
||||||
if (Num == 0)
|
if (Num == 0)
|
||||||
CALL((void*)&ARMv5::JumpTo);
|
CALL((void*)&ARMv5JumpToTrampoline);
|
||||||
else
|
else
|
||||||
CALL((void*)&ARMv4::JumpTo);
|
CALL((void*)&ARMv4JumpToTrampoline);
|
||||||
|
|
||||||
PopRegs(restoreCPSR);
|
PopRegs(restoreCPSR);
|
||||||
|
|
||||||
@ -269,4 +279,4 @@ void Compiler::T_Comp_BL_Merged()
|
|||||||
Comp_JumpTo(target);
|
Comp_JumpTo(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user