mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
SPU: write cache before compiling
This commit is contained in:
parent
e064b92058
commit
8deb20e928
2 changed files with 5 additions and 10 deletions
|
@ -844,11 +844,6 @@ bool spu_recompiler::compile(u64 last_reset_count, const std::vector<u32>& func)
|
||||||
fs::file(m_spurt->get_cache_path() + "spu.log", fs::write + fs::append).write(log);
|
fs::file(m_spurt->get_cache_path() + "spu.log", fs::write + fs::append).write(log);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_cache && g_cfg.core.spu_cache)
|
|
||||||
{
|
|
||||||
m_cache->add(func);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -785,6 +785,11 @@ spu_recompiler_base::~spu_recompiler_base()
|
||||||
|
|
||||||
void spu_recompiler_base::make_function(const std::vector<u32>& data)
|
void spu_recompiler_base::make_function(const std::vector<u32>& data)
|
||||||
{
|
{
|
||||||
|
if (m_cache && g_cfg.core.spu_cache)
|
||||||
|
{
|
||||||
|
m_cache->add(data);
|
||||||
|
}
|
||||||
|
|
||||||
for (u64 reset_count = m_spurt->get_reset_count();;)
|
for (u64 reset_count = m_spurt->get_reset_count();;)
|
||||||
{
|
{
|
||||||
if (LIKELY(compile(reset_count, data)))
|
if (LIKELY(compile(reset_count, data)))
|
||||||
|
@ -3538,11 +3543,6 @@ public:
|
||||||
fs::file(m_spurt->get_cache_path() + "spu.log", fs::write + fs::append).write(log);
|
fs::file(m_spurt->get_cache_path() + "spu.log", fs::write + fs::append).write(log);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_cache && g_cfg.core.spu_cache)
|
|
||||||
{
|
|
||||||
m_cache->add(func);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue