Merge pull request #13985 from Dentomologist/jit64_fix_dcbz_regression

Jit64: Fix dcbz regression
This commit is contained in:
Jordan Woyak 2025-10-01 02:14:32 -05:00 committed by GitHub
commit a570b24c96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();