mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 03:38:38 +12:00
Fixup No.2 for #10779
This commit is contained in:
parent
ad6a72e369
commit
06f733a7f2
2 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue