Minor optimization for check_only ppu_initialize
This commit is contained in:
@@ -2765,6 +2765,8 @@ bool ppu_initialize(const ppu_module& info, bool check_only)
|
||||
break;
|
||||
}
|
||||
|
||||
if (!check_only)
|
||||
{
|
||||
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));
|
||||
|
||||
@@ -2776,6 +2778,7 @@ bool ppu_initialize(const ppu_module& info, bool check_only)
|
||||
}
|
||||
|
||||
link_workload.emplace_back(obj_name, false);
|
||||
}
|
||||
|
||||
// Check object file
|
||||
if (jit_compiler::check(cache_path + obj_name))
|
||||
@@ -2788,14 +2791,14 @@ bool ppu_initialize(const ppu_module& info, bool check_only)
|
||||
continue;
|
||||
}
|
||||
|
||||
// Remember, used in ppu_initialize(void)
|
||||
compiled_new = true;
|
||||
|
||||
if (check_only)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// Remember, used in ppu_initialize(void)
|
||||
compiled_new = true;
|
||||
|
||||
// Adjust information (is_compiled)
|
||||
link_workload.back().second = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user