Merge pull request #14541 from JosJuice/jit64-dcbz-dcache

Jit64: Use dcbz slow path with accurate dcache
This commit is contained in:
JMC47 authored and GitHub committed 2026-04-02 14:28:14 -04:00
commit 4d74a93375
2 files changed
+4 -5

No files matched your search

@@ -234,10 +234,9 @@ void Jit64::lXXx(UGeckoInstruction inst)
void Jit64::dcbx(UGeckoInstruction inst)
{
FALLBACK_IF(m_accurate_cpu_cache_enabled);
INSTRUCTION_START
JITDISABLE(bJITLoadStoreOff);
FALLBACK_IF(m_accurate_cpu_cache_enabled);
// Check if the next instructions match a known looping pattern:
// - dcbx rX
@@ -448,7 +447,8 @@ void Jit64::dcbz(UGeckoInstruction inst)
end_dcbz_hack = J_CC(CC_L);
}
bool emit_fast_path = (m_ppc_state.feature_flags & FEATURE_FLAG_MSR_DR) && m_jit.jo.fastmem_arena;
bool emit_fast_path = (m_ppc_state.feature_flags & FEATURE_FLAG_MSR_DR) &&
m_jit.jo.fastmem_arena && !m_accurate_cpu_cache_enabled;
if (emit_fast_path)
{
@@ -757,10 +757,9 @@ void JitArm64::stmw(UGeckoInstruction inst)
void JitArm64::dcbx(UGeckoInstruction inst)
{
FALLBACK_IF(m_accurate_cpu_cache_enabled);
INSTRUCTION_START
JITDISABLE(bJITLoadStoreOff);
FALLBACK_IF(m_accurate_cpu_cache_enabled);
u32 a = inst.RA, b = inst.RB;