mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-30 22:26:48 -05:00
Jit64: Use dcbz slow path with accurate dcache
Jit64::dcbz's fast path bypasses the dcache, so we shouldn't use it if accurate dcache is turned on. This fixes the graphical corruption that would occur in Mario Kart Wii's menu FMVs with accurate dcache. JitArm64 never had this problem, because it implements dcbz in a different way. It calls EmitBackpatchRoutine, which already has a check for accurate dcache.
This commit is contained in:
@@ -448,7 +448,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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user