diff options
| author | Sonicadvance1 <sonicadvance1@gmail.com> | 2010-03-17 09:38:13 +0000 |
|---|---|---|
| committer | Sonicadvance1 <sonicadvance1@gmail.com> | 2010-03-17 09:38:13 +0000 |
| commit | 4e9be9aa594207c4a0fc229157af5e031a2cb87b (patch) | |
| tree | c0a9226881455f469e84df0225c8d57dbbf5b77c /Source | |
| parent | 721935c6ffc34b5f319c10a6c7850543c48d9e19 (diff) | |
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
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/Src/CoreParameter.cpp | 1 | ||||
| -rw-r--r-- | Source/Core/Core/Src/PowerPC/JitCommon/JitAsmCommon.cpp | 35 |
2 files changed, 35 insertions, 1 deletions
diff --git a/Source/Core/Core/Src/CoreParameter.cpp b/Source/Core/Core/Src/CoreParameter.cpp index eae09c1124..21179d769e 100644 --- a/Source/Core/Core/Src/CoreParameter.cpp +++ b/Source/Core/Core/Src/CoreParameter.cpp @@ -93,6 +93,7 @@ void SCoreStartupParameter::LoadDefaults() // Since all 64bit applications are above the 32bit memory boundary bJITLoadStoreOff = true; bJITLoadStorePairedOff = true; + //bJITLoadStoreFloatingOff = true; #endif //#elif defined(__linux__) // Similar to OSX, something with LoadStorePaired seems to cause diff --git a/Source/Core/Core/Src/PowerPC/JitCommon/JitAsmCommon.cpp b/Source/Core/Core/Src/PowerPC/JitCommon/JitAsmCommon.cpp index 3d34917bdd..667c91bd69 100644 --- a/Source/Core/Core/Src/PowerPC/JitCommon/JitAsmCommon.cpp +++ b/Source/Core/Core/Src/PowerPC/JitCommon/JitAsmCommon.cpp @@ -37,6 +37,39 @@ using namespace Gen; 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)
{
// Assume value in ABI_PARAM1
@@ -77,7 +110,7 @@ void CommonAsmRoutines::GenFifoFloatWrite() POP(ESI);
RET();
}
-
+#endif
void CommonAsmRoutines::GenFifoXmm64Write()
{
// Assume value in XMM0. Assume pre-byteswapped (unlike the others here!)
|
