mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
Minor optimization for check_only ppu_initialize
This commit is contained in:
parent
7bddb87306
commit
670d2b191c
1 changed files with 15 additions and 12 deletions
|
@ -2765,6 +2765,8 @@ bool ppu_initialize(const ppu_module& info, bool check_only)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!check_only)
|
||||||
|
{
|
||||||
globals.emplace_back(fmt::format("__mptr%x", suffix), reinterpret_cast<u64>(vm::g_base_addr));
|
globals.emplace_back(fmt::format("__mptr%x", suffix), reinterpret_cast<u64>(vm::g_base_addr));
|
||||||
globals.emplace_back(fmt::format("__cptr%x", suffix), reinterpret_cast<u64>(vm::g_exec_addr));
|
globals.emplace_back(fmt::format("__cptr%x", suffix), reinterpret_cast<u64>(vm::g_exec_addr));
|
||||||
|
|
||||||
|
@ -2776,6 +2778,7 @@ bool ppu_initialize(const ppu_module& info, bool check_only)
|
||||||
}
|
}
|
||||||
|
|
||||||
link_workload.emplace_back(obj_name, false);
|
link_workload.emplace_back(obj_name, false);
|
||||||
|
}
|
||||||
|
|
||||||
// Check object file
|
// Check object file
|
||||||
if (jit_compiler::check(cache_path + obj_name))
|
if (jit_compiler::check(cache_path + obj_name))
|
||||||
|
@ -2788,14 +2791,14 @@ bool ppu_initialize(const ppu_module& info, bool check_only)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remember, used in ppu_initialize(void)
|
|
||||||
compiled_new = true;
|
|
||||||
|
|
||||||
if (check_only)
|
if (check_only)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remember, used in ppu_initialize(void)
|
||||||
|
compiled_new = true;
|
||||||
|
|
||||||
// Adjust information (is_compiled)
|
// Adjust information (is_compiled)
|
||||||
link_workload.back().second = true;
|
link_workload.back().second = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue