mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-11 06:40:39 +00:00
Savestates/Debugger: fix mfc debug option with savestates
This commit is contained in:
parent
4445569bb0
commit
ae02b71a85
@ -1694,6 +1694,7 @@ spu_thread::spu_thread(lv2_spu_group* group, u32 index, std::string_view name, u
|
|||||||
if (g_cfg.core.mfc_debug)
|
if (g_cfg.core.mfc_debug)
|
||||||
{
|
{
|
||||||
utils::memory_commit(vm::g_stat_addr + vm_offset(), SPU_LS_SIZE);
|
utils::memory_commit(vm::g_stat_addr + vm_offset(), SPU_LS_SIZE);
|
||||||
|
mfc_history.resize(max_mfc_dump_idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_cfg.core.spu_decoder == spu_decoder_type::asmjit || g_cfg.core.spu_decoder == spu_decoder_type::llvm)
|
if (g_cfg.core.spu_decoder == spu_decoder_type::asmjit || g_cfg.core.spu_decoder == spu_decoder_type::llvm)
|
||||||
@ -1710,11 +1711,6 @@ spu_thread::spu_thread(lv2_spu_group* group, u32 index, std::string_view name, u
|
|||||||
cpu_init();
|
cpu_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_cfg.core.mfc_debug)
|
|
||||||
{
|
|
||||||
mfc_history.resize(max_mfc_dump_idx);
|
|
||||||
}
|
|
||||||
|
|
||||||
range_lock = vm::alloc_range_lock();
|
range_lock = vm::alloc_range_lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1757,6 +1753,7 @@ spu_thread::spu_thread(utils::serial& ar, lv2_spu_group* group)
|
|||||||
if (g_cfg.core.mfc_debug)
|
if (g_cfg.core.mfc_debug)
|
||||||
{
|
{
|
||||||
utils::memory_commit(vm::g_stat_addr + vm_offset(), SPU_LS_SIZE);
|
utils::memory_commit(vm::g_stat_addr + vm_offset(), SPU_LS_SIZE);
|
||||||
|
mfc_history.resize(max_mfc_dump_idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_cfg.core.spu_decoder != spu_decoder_type::_static && g_cfg.core.spu_decoder != spu_decoder_type::dynamic)
|
if (g_cfg.core.spu_decoder != spu_decoder_type::_static && g_cfg.core.spu_decoder != spu_decoder_type::dynamic)
|
||||||
@ -1768,11 +1765,6 @@ spu_thread::spu_thread(utils::serial& ar, lv2_spu_group* group)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_type() >= spu_type::raw)
|
|
||||||
{
|
|
||||||
cpu_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
range_lock = vm::alloc_range_lock();
|
range_lock = vm::alloc_range_lock();
|
||||||
|
|
||||||
serialize_common(ar);
|
serialize_common(ar);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user