Skip to content

Commit a570b24

Browse files
authored
Merge pull request #13985 from Dentomologist/jit64_fix_dcbz_regression
Jit64: Fix dcbz regression
2 parents 0c89c00 + d311724 commit a570b24

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -474,18 +474,9 @@ void Jit64::dcbz(UGeckoInstruction inst)
474474
FixupBranch slow = J_CC(CC_Z, Jump::Near);
475475

476476
// Fast path: compute full address, then zero out 32 bytes of memory.
477-
if (cpu_info.bAVX)
478-
{
479-
VXORPS(XMM0, XMM0, R(XMM0));
480-
VMOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 0), YMM0);
481-
VZEROUPPER();
482-
}
483-
else
484-
{
485-
XORPS(XMM0, R(XMM0));
486-
MOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 16), XMM0);
487-
MOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 0), XMM0);
488-
}
477+
XORPS(XMM0, R(XMM0));
478+
MOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 0), XMM0);
479+
MOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 16), XMM0);
489480

490481
// Slow path: call the general-case code.
491482
SwitchToFarCode();

0 commit comments

Comments
 (0)