diff --git a/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp b/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp index f0d8ff9d13..83b91d160f 100644 --- a/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp +++ b/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp @@ -4690,8 +4690,6 @@ struct spu_llvm auto workers_ptr = m_workers.load(); auto& workers = *workers_ptr; - usz add_count = 65535; - while (thread_ctrl::state() != thread_state::aborting) { for (const auto& pair : registered.pop_all()) @@ -4722,7 +4720,6 @@ struct spu_llvm // Interrupt profiler thread and put it to sleep static_cast(prof_mutex.reset()); thread_ctrl::wait_on(utils::bless>(®istered)[1], 0); - add_count = 65535; // Reset count std::fill(notify_compile.begin(), notify_compile.end(), 0); // Reset notification flags notify_compile_count = 0; compile_pending = 0; diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index be02da024a..2552f8cabd 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -3006,7 +3006,7 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s thread_ctrl::wait_for(5'000); } - for (int i = 0; thread_ctrl::state() != thread_state::aborting;) + while (thread_ctrl::state() != thread_state::aborting) { if (auto ar_ptr = to_ar.load()) { @@ -3245,8 +3245,6 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s if (savestate) { - auto& ar = *to_ar.load(); - fs::stat_t file_stat{}; if (!file.commit() || !fs::get_stat(path, file_stat))