mirror of
https://github.com/dolphin-emu/dolphin
synced 2025-10-05 16:03:02 +02:00
Jit64: Fix dcbz regression
Fix a regression from d1ba84987
that caused freezes and/or
graphical/audio glitches in various games.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user