diff --git a/rpcs3/Emu/Cell/SPUASMJITRecompiler.cpp b/rpcs3/Emu/Cell/SPUASMJITRecompiler.cpp index 425fb91e4f..a979cd908e 100644 --- a/rpcs3/Emu/Cell/SPUASMJITRecompiler.cpp +++ b/rpcs3/Emu/Cell/SPUASMJITRecompiler.cpp @@ -1055,7 +1055,7 @@ spu_function_t spu_recompiler::compile(std::vector&& func_rv) fs::file(Emu.GetCachePath() + "SPUJIT.log", fs::write + fs::append).write(log); } - if (m_cache) + if (m_cache && g_cfg.core.spu_cache) { m_cache->add(func); } diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index 387eb8ce44..dd74eb00ad 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -1716,7 +1716,7 @@ public: fs::file(m_spurt->m_cache_path + "../spu.log", fs::write + fs::append).write(log); } - if (m_cache) + if (m_cache && g_cfg.core.spu_cache) { m_cache->add(func); } diff --git a/rpcs3/Emu/System.h b/rpcs3/Emu/System.h index 3896739665..05c91479f3 100644 --- a/rpcs3/Emu/System.h +++ b/rpcs3/Emu/System.h @@ -323,6 +323,7 @@ struct cfg_root : cfg::node cfg::_enum spu_block_size{this, "SPU Block Size"}; cfg::_bool spu_accurate_getllar{this, "Accurate GETLLAR", false}; cfg::_bool spu_verification{this, "SPU Verification", true}; // Should be enabled + cfg::_bool spu_cache{this, "SPU Cache", true}; cfg::_enum lib_loading{this, "Lib Loader", lib_loading_type::liblv2only}; cfg::_bool hook_functions{this, "Hook static functions"};