From ae02b71a8588f16fbc9bc34df9ccda642cd8817c Mon Sep 17 00:00:00 2001 From: Eladash Date: Sun, 25 Sep 2022 09:11:57 +0300 Subject: [PATCH] Savestates/Debugger: fix mfc debug option with savestates --- rpcs3/Emu/Cell/SPUThread.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/rpcs3/Emu/Cell/SPUThread.cpp b/rpcs3/Emu/Cell/SPUThread.cpp index 12b783bc8a..25b81af3f3 100644 --- a/rpcs3/Emu/Cell/SPUThread.cpp +++ b/rpcs3/Emu/Cell/SPUThread.cpp @@ -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);