mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 21:38:01 +03:00
PPU LLVM: Fix HLE patches
This commit is contained in:
parent
67703b49d8
commit
7fc0f69e48
1 changed files with 6 additions and 1 deletions
|
@ -5023,7 +5023,7 @@ bool ppu_initialize(const ppu_module<lv2_obj>& info, bool check_only, u64 file_s
|
||||||
|
|
||||||
if (source == func.addr)
|
if (source == func.addr)
|
||||||
{
|
{
|
||||||
(*shared_map)[func.addr - reloc] = reinterpret_cast<u64>(far_jump);
|
(*shared_map)[func.addr] = reinterpret_cast<u64>(far_jump);
|
||||||
}
|
}
|
||||||
|
|
||||||
ppu_register_function_at(source, 4, far_jump);
|
ppu_register_function_at(source, 4, far_jump);
|
||||||
|
@ -5408,6 +5408,11 @@ bool ppu_initialize(const ppu_module<lv2_obj>& info, bool check_only, u64 file_s
|
||||||
while (jits.size() < utils::aligned_div<u64>(module_counter, c_moudles_per_jit) && is_being_used_in_emulation)
|
while (jits.size() < utils::aligned_div<u64>(module_counter, c_moudles_per_jit) && is_being_used_in_emulation)
|
||||||
{
|
{
|
||||||
jits.emplace_back(std::make_shared<jit_compiler>(s_link_table, g_cfg.core.llvm_cpu, 0, symbols_cement));
|
jits.emplace_back(std::make_shared<jit_compiler>(s_link_table, g_cfg.core.llvm_cpu, 0, symbols_cement));
|
||||||
|
|
||||||
|
for (const auto& [addr, func] : *shared_map)
|
||||||
|
{
|
||||||
|
jits.back()->update_global_mapping(fmt::format("__0x%x", addr - reloc), func);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jit_mod.symbol_resolvers.empty() && is_being_used_in_emulation)
|
if (jit_mod.symbol_resolvers.empty() && is_being_used_in_emulation)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue