Fix ppu_execute<Func> for HLE functions
This commit is contained in:
@@ -530,6 +530,9 @@ static auto ppu_load_exports(ppu_linkage_info* link, u32 exports_start, u32 expo
|
|||||||
const u32 _entry = vm::read32(faddr);
|
const u32 _entry = vm::read32(faddr);
|
||||||
const u32 target = ppu_function_manager::addr + 8 * _sf->index;
|
const u32 target = ppu_function_manager::addr + 8 * _sf->index;
|
||||||
|
|
||||||
|
// Set exported function
|
||||||
|
flink.export_addr = target;
|
||||||
|
|
||||||
if ((target <= _entry && _entry - target <= 0x2000000) || (target > _entry && target - _entry < 0x2000000))
|
if ((target <= _entry && _entry - target <= 0x2000000) || (target > _entry && target - _entry < 0x2000000))
|
||||||
{
|
{
|
||||||
// Use relative branch
|
// Use relative branch
|
||||||
|
|||||||
Reference in New Issue
Block a user