mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 23:29:44 -06:00
Corrected the XMM0 processing for pairedStoreQuantized in the x86 build.
Updated the PC for the fifo writes processing in the less common case.
This commit is contained in:
@ -158,9 +158,9 @@ void CommonAsmRoutines::GenQuantizedStores() {
|
|||||||
#ifdef _M_X64
|
#ifdef _M_X64
|
||||||
SHUFPS(XMM0, R(XMM0), 1);
|
SHUFPS(XMM0, R(XMM0), 1);
|
||||||
MOVQ_xmm(M(&psTemp[0]), XMM0);
|
MOVQ_xmm(M(&psTemp[0]), XMM0);
|
||||||
MOV(64, R(RAX), M(&psTemp[0]));
|
|
||||||
TEST(32, R(ECX), Imm32(0x0C000000));
|
TEST(32, R(ECX), Imm32(0x0C000000));
|
||||||
FixupBranch too_complex = J_CC(CC_NZ, true);
|
FixupBranch too_complex = J_CC(CC_NZ, true);
|
||||||
|
MOV(64, R(RAX), M(&psTemp[0]));
|
||||||
BSWAP(64, RAX);
|
BSWAP(64, RAX);
|
||||||
MOV(64, MComplex(RBX, RCX, SCALE_1, 0), R(RAX));
|
MOV(64, MComplex(RBX, RCX, SCALE_1, 0), R(RAX));
|
||||||
FixupBranch skip_complex = J(true);
|
FixupBranch skip_complex = J(true);
|
||||||
@ -171,9 +171,9 @@ void CommonAsmRoutines::GenQuantizedStores() {
|
|||||||
SetJumpTarget(skip_complex);
|
SetJumpTarget(skip_complex);
|
||||||
RET();
|
RET();
|
||||||
#else
|
#else
|
||||||
MOVQ_xmm(M(&psTemp[0]), XMM0);
|
|
||||||
TEST(32, R(ECX), Imm32(0x0C000000));
|
TEST(32, R(ECX), Imm32(0x0C000000));
|
||||||
FixupBranch argh = J_CC(CC_NZ, true);
|
FixupBranch argh = J_CC(CC_NZ, true);
|
||||||
|
MOVQ_xmm(M(&psTemp[0]), XMM0);
|
||||||
MOV(32, R(EAX), M(&psTemp));
|
MOV(32, R(EAX), M(&psTemp));
|
||||||
BSWAP(32, EAX);
|
BSWAP(32, EAX);
|
||||||
AND(32, R(ECX), Imm32(Memory::MEMVIEW32_MASK));
|
AND(32, R(ECX), Imm32(Memory::MEMVIEW32_MASK));
|
||||||
@ -183,6 +183,8 @@ void CommonAsmRoutines::GenQuantizedStores() {
|
|||||||
MOV(32, MDisp(ECX, 4+(u32)Memory::base), R(EAX));
|
MOV(32, MDisp(ECX, 4+(u32)Memory::base), R(EAX));
|
||||||
FixupBranch arg2 = J(true);
|
FixupBranch arg2 = J(true);
|
||||||
SetJumpTarget(argh);
|
SetJumpTarget(argh);
|
||||||
|
SHUFPS(XMM0, R(XMM0), 1);
|
||||||
|
MOVQ_xmm(M(&psTemp[0]), XMM0);
|
||||||
ABI_PushRegistersAndAdjustStack(QUANTIZED_REGS_TO_SAVE, true);
|
ABI_PushRegistersAndAdjustStack(QUANTIZED_REGS_TO_SAVE, true);
|
||||||
ABI_CallFunctionR((void *)&WriteDual32, ECX);
|
ABI_CallFunctionR((void *)&WriteDual32, ECX);
|
||||||
ABI_PopRegistersAndAdjustStack(QUANTIZED_REGS_TO_SAVE, true);
|
ABI_PopRegistersAndAdjustStack(QUANTIZED_REGS_TO_SAVE, true);
|
||||||
|
@ -307,9 +307,9 @@ void EmuCodeBlock::SafeWriteRegToReg(X64Reg reg_value, X64Reg reg_addr, int acce
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
MOV(32, M(&PC), Imm32(jit->js.compilerPC)); // Helps external systems know which instruction triggered the write
|
||||||
TEST(32, R(reg_addr), Imm32(mem_mask));
|
TEST(32, R(reg_addr), Imm32(mem_mask));
|
||||||
FixupBranch fast = J_CC(CC_Z, true);
|
FixupBranch fast = J_CC(CC_Z, true);
|
||||||
MOV(32, M(&PC), Imm32(jit->js.compilerPC)); // Helps external systems know which instruction triggered the write
|
|
||||||
bool noProlog = flags & SAFE_WRITE_NO_PROLOG;
|
bool noProlog = flags & SAFE_WRITE_NO_PROLOG;
|
||||||
bool swap = !(flags & SAFE_WRITE_NO_SWAP);
|
bool swap = !(flags & SAFE_WRITE_NO_SWAP);
|
||||||
ABI_PushRegistersAndAdjustStack(registersInUse, noProlog);
|
ABI_PushRegistersAndAdjustStack(registersInUse, noProlog);
|
||||||
|
Reference in New Issue
Block a user