diff --git a/Common/CPUDetect.cpp b/Common/CPUDetect.cpp index 19e557f9ea..c09ed9f475 100644 --- a/Common/CPUDetect.cpp +++ b/Common/CPUDetect.cpp @@ -36,7 +36,7 @@ #undef _interlockedbittestandreset64 #else -#if !defined(_M_GENERIC) && !defined(MIPS) +#ifdef _M_SSE #include #endif diff --git a/Common/Common.h b/Common/Common.h index df4b22acba..8604128025 100644 --- a/Common/Common.h +++ b/Common/Common.h @@ -146,6 +146,8 @@ private: # define _M_SSE 0x301 # elif defined __SSE3__ # define _M_SSE 0x300 +# elif defined __SSE2__ +# define _M_SSE 0x200 # endif #elif ((_MSC_VER >= 1500) || __INTEL_COMPILER) // Visual Studio 2008 # define _M_SSE 0x402 diff --git a/GPU/GLES/TextureCache.cpp b/GPU/GLES/TextureCache.cpp index 112fff26e9..5337faf84b 100644 --- a/GPU/GLES/TextureCache.cpp +++ b/GPU/GLES/TextureCache.cpp @@ -704,7 +704,7 @@ inline bool TextureCache::TexCacheEntry::Matches(u16 dim2, u8 format2, int maxLe void TextureCache::LoadClut() { u32 clutAddr = gstate.getClutAddress(); if (Memory::IsValidAddress(clutAddr)) { -#if defined(_M_IX86) || defined(_M_X64) +#ifdef _M_SSE int numBlocks = gstate.getClutLoadBlocks(); clutTotalBytes_ = numBlocks * 32; const __m128i *source = (const __m128i *)Memory::GetPointerUnchecked(clutAddr);