mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
PPU/Debugger: Fix op_branch_targets
This commit is contained in:
parent
cdc0441405
commit
df24305698
2 changed files with 2 additions and 4 deletions
|
@ -1206,9 +1206,7 @@ std::array<u32, 2> op_branch_targets(u32 pc, ppu_opcode_t op)
|
||||||
{
|
{
|
||||||
std::array<u32, 2> res{pc + 4, umax};
|
std::array<u32, 2> res{pc + 4, umax};
|
||||||
|
|
||||||
g_fxo->need<ppu_far_jumps_t>();
|
if (u32 target = g_fxo->is_init<ppu_far_jumps_t>() ? g_fxo->get<ppu_far_jumps_t>().get_target(pc) : 0)
|
||||||
|
|
||||||
if (u32 target = g_fxo->get<ppu_far_jumps_t>().get_target(pc))
|
|
||||||
{
|
{
|
||||||
res[0] = target;
|
res[0] = target;
|
||||||
return res;
|
return res;
|
||||||
|
|
|
@ -347,7 +347,7 @@ namespace stx
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if object is not initialized but shall be initialized first (to use in initializing other objects)
|
// Check if object is not initialized but shall be initialized first (to use in initializing other objects)
|
||||||
template <typename T>
|
template <typename T> requires (std::is_constructible_v<T, manual_typemap&> || std::is_default_constructible_v<T>)
|
||||||
void need() noexcept
|
void need() noexcept
|
||||||
{
|
{
|
||||||
if (!m_init[stx::typeindex<typeinfo, std::decay_t<T>>()])
|
if (!m_init[stx::typeindex<typeinfo, std::decay_t<T>>()])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue