This commit is contained in:
Nekotekina 2021-09-01 14:38:20 +03:00
parent b40ed5bdb7
commit ad6a72e369
3 changed files with 9 additions and 12 deletions

View file

@ -608,7 +608,6 @@ static auto ppu_load_exports(ppu_linkage_info* link, u32 exports_start, u32 expo
if (_sf && (_sf->flags & MFF_FORCED_HLE))
{
// Inject a branch to the HLE implementation
const u32 _entry = vm::read32(faddr);
const u32 target = g_fxo->get<ppu_function_manager>().func_addr(_sf->index) + 4;
// Set exported function

View file

@ -506,9 +506,10 @@ struct ppu_far_jumps_t
u32 ppu_get_far_jump(u32 pc)
{
g_fxo->init<ppu_far_jumps_t>();
return g_fxo->get<const ppu_far_jumps_t>().get_target(pc);
}
static bool ppu_far_jump(ppu_thread& ppu)
{
ppu.cia = g_fxo->get<const ppu_far_jumps_t>().get_target(ppu.cia);