From d311724750d89b4b3871d609cdb239b758460878 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Tue, 30 Sep 2025 22:15:36 -0700 Subject: [PATCH] Jit64: Fix dcbz regression Fix a regression from d1ba84987 that caused freezes and/or graphical/audio glitches in various games. --- Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp index 9f0eff7493d..4f77fc94c95 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp @@ -474,18 +474,9 @@ void Jit64::dcbz(UGeckoInstruction inst) FixupBranch slow = J_CC(CC_Z, Jump::Near); // Fast path: compute full address, then zero out 32 bytes of memory. - if (cpu_info.bAVX) - { - VXORPS(XMM0, XMM0, R(XMM0)); - VMOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 0), YMM0); - VZEROUPPER(); - } - else - { - XORPS(XMM0, R(XMM0)); - MOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 16), XMM0); - MOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 0), XMM0); - } + XORPS(XMM0, R(XMM0)); + MOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 0), XMM0); + MOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 16), XMM0); // Slow path: call the general-case code. SwitchToFarCode();