mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
Merge pull request #13985 from Dentomologist/jit64_fix_dcbz_regression
Jit64: Fix dcbz regression
This commit is contained in:
commit
a570b24c96
@ -474,18 +474,9 @@ void Jit64::dcbz(UGeckoInstruction inst)
|
|||||||
FixupBranch slow = J_CC(CC_Z, Jump::Near);
|
FixupBranch slow = J_CC(CC_Z, Jump::Near);
|
||||||
|
|
||||||
// Fast path: compute full address, then zero out 32 bytes of memory.
|
// Fast path: compute full address, then zero out 32 bytes of memory.
|
||||||
if (cpu_info.bAVX)
|
XORPS(XMM0, R(XMM0));
|
||||||
{
|
MOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 0), XMM0);
|
||||||
VXORPS(XMM0, XMM0, R(XMM0));
|
MOVAPS(MComplex(RMEM, RSCRATCH, SCALE_1, 16), 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Slow path: call the general-case code.
|
// Slow path: call the general-case code.
|
||||||
SwitchToFarCode();
|
SwitchToFarCode();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user