1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Savestates/Debugger: fix mfc debug option with savestates

This commit is contained in:
Eladash 2022-09-25 09:11:57 +03:00 committed by Ivan
parent 4445569bb0
commit ae02b71a85

View File

@ -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)
{
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)
@ -1710,11 +1711,6 @@ spu_thread::spu_thread(lv2_spu_group* group, u32 index, std::string_view name, u
cpu_init();
}
if (g_cfg.core.mfc_debug)
{
mfc_history.resize(max_mfc_dump_idx);
}
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)
{
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)
@ -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();
serialize_common(ar);