Linux: Not sure if this is neccessarily an alignment issue, but Kingdom Hearts 1 crashes on newgame with the new compare function, so we'll have it use memcmp for the moment.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1348 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2009-06-07 21:08:21 +00:00
parent 2ca4a603b3
commit 67b2d2bfc2
1 changed files with 4 additions and 1 deletions

View File

@ -163,11 +163,14 @@ declareAllVariables
// Define mVUquickSearch
extern u8 mVUsearchXMM[0x1000];
typedef u32 (__fastcall *mVUCall)(void*, void*);
#ifndef __LINUX__
#define mVUquickSearch(dest, src, size) ((((mVUCall)((void*)mVUsearchXMM))(dest, src)) == 0xf)
// Note: If GCC builds crash with above function, it means
// that they're not guaranteeing 16-byte alignment on the structs
// being compared. So use this function instead:
// #define mVUquickSearch(dest, src, size) (!memcmp(dest, src, size))
#else
#define mVUquickSearch(dest, src, size) (!memcmp(dest, src, size))
#endif
// Misc Macros...
#define mVUprogI mVU->prog.prog[progIndex]