Fixup No.2 for #10779
This commit is contained in:
@@ -539,6 +539,8 @@ bool ppu_form_branch_to_code(u32 entry, u32 target)
|
|||||||
|
|
||||||
void ppu_remove_hle_instructions(u32 addr, u32 size)
|
void ppu_remove_hle_instructions(u32 addr, u32 size)
|
||||||
{
|
{
|
||||||
|
g_fxo->init<ppu_far_jumps_t>();
|
||||||
|
|
||||||
auto& jumps = g_fxo->get<ppu_far_jumps_t>();
|
auto& jumps = g_fxo->get<ppu_far_jumps_t>();
|
||||||
|
|
||||||
std::lock_guard lock(jumps.mutex);
|
std::lock_guard lock(jumps.mutex);
|
||||||
|
|||||||
@@ -362,12 +362,6 @@ void PPUTranslator::CallFunction(u64 target, Value* indirect)
|
|||||||
|
|
||||||
if (_target >= caddr && _target <= cend)
|
if (_target >= caddr && _target <= cend)
|
||||||
{
|
{
|
||||||
if (target == m_addr + 4)
|
|
||||||
{
|
|
||||||
// Branch to nex (ignored)
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
callee = m_module->getOrInsertFunction(fmt::format("__0x%x", target), type);
|
callee = m_module->getOrInsertFunction(fmt::format("__0x%x", target), type);
|
||||||
cast<Function>(callee.getCallee())->setCallingConv(CallingConv::GHC);
|
cast<Function>(callee.getCallee())->setCallingConv(CallingConv::GHC);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user