mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-16 14:42:52 +00:00
This fixes JIT Loading Store Floating in 64bit OSX
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5205 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
721935c6ff
commit
4e9be9aa59
@ -93,6 +93,7 @@ void SCoreStartupParameter::LoadDefaults()
|
|||||||
// Since all 64bit applications are above the 32bit memory boundary
|
// Since all 64bit applications are above the 32bit memory boundary
|
||||||
bJITLoadStoreOff = true;
|
bJITLoadStoreOff = true;
|
||||||
bJITLoadStorePairedOff = true;
|
bJITLoadStorePairedOff = true;
|
||||||
|
//bJITLoadStoreFloatingOff = true;
|
||||||
#endif
|
#endif
|
||||||
//#elif defined(__linux__)
|
//#elif defined(__linux__)
|
||||||
// Similar to OSX, something with LoadStorePaired seems to cause
|
// Similar to OSX, something with LoadStorePaired seems to cause
|
||||||
|
@ -37,6 +37,39 @@ using namespace Gen;
|
|||||||
|
|
||||||
static int temp32;
|
static int temp32;
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __APPLE__ && _M_X64
|
||||||
|
void CommonAsmRoutines::GenFifoFloatWrite()
|
||||||
|
{
|
||||||
|
// Assume value in XMM0
|
||||||
|
PUSH(RSI);
|
||||||
|
PUSH(EDX);
|
||||||
|
MOVSS(M(&temp32), XMM0);
|
||||||
|
MOV(32, R(EDX), M(&temp32));
|
||||||
|
BSWAP(32, EDX);
|
||||||
|
MOV(64, R(RAX), Imm64((u64)GPFifo::m_gatherPipe));
|
||||||
|
MOV(64, R(RSI), M(&GPFifo::m_gatherPipeCount));
|
||||||
|
MOV(32, MComplex(RAX, RSI, 1, 0), R(EDX));
|
||||||
|
ADD(64, R(RSI), Imm8(4));
|
||||||
|
MOV(64, M(&GPFifo::m_gatherPipeCount), R(RSI));
|
||||||
|
POP(EDX);
|
||||||
|
POP(RSI);
|
||||||
|
RET();
|
||||||
|
}
|
||||||
|
|
||||||
|
void CommonAsmRoutines::GenFifoXmm64Write()
|
||||||
|
{
|
||||||
|
// Assume value in XMM0. Assume pre-byteswapped (unlike the others here!)
|
||||||
|
PUSH(RSI);
|
||||||
|
MOV(64, R(RAX), Imm32((u64)GPFifo::m_gatherPipe));
|
||||||
|
MOV(64, R(RSI), M(&GPFifo::m_gatherPipeCount));
|
||||||
|
MOVQ_xmm(MComplex(RAX, RSI, 1, 0), XMM0);
|
||||||
|
ADD(64, R(RSI), Imm8(8));
|
||||||
|
MOV(64, M(&GPFifo::m_gatherPipeCount), R(RSI));
|
||||||
|
POP(RSI);
|
||||||
|
RET();
|
||||||
|
}
|
||||||
|
#else
|
||||||
void CommonAsmRoutines::GenFifoWrite(int size)
|
void CommonAsmRoutines::GenFifoWrite(int size)
|
||||||
{
|
{
|
||||||
// Assume value in ABI_PARAM1
|
// Assume value in ABI_PARAM1
|
||||||
@ -77,7 +110,7 @@ void CommonAsmRoutines::GenFifoFloatWrite()
|
|||||||
POP(ESI);
|
POP(ESI);
|
||||||
RET();
|
RET();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
void CommonAsmRoutines::GenFifoXmm64Write()
|
void CommonAsmRoutines::GenFifoXmm64Write()
|
||||||
{
|
{
|
||||||
// Assume value in XMM0. Assume pre-byteswapped (unlike the others here!)
|
// Assume value in XMM0. Assume pre-byteswapped (unlike the others here!)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user