added sse3 enable option

This commit is contained in:
zerofrog
2007-11-11 18:29:16 +00:00
parent c557650c80
commit eb8e031646
3 changed files with 15 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ Special Options (modify PCSX2OPTIONS in build.sh)
--enable-devbuild {Build with extra tests}
--disable-recbuild {Disables all architecture dependent recompilation code}
--enable-sse2 {Enables x86 SSE2 extensions}
--enable-sse3 {Force enables x86 SSE3 extensions}
For plugin authors: Your Makefile should support the 'install' option.

View File

@@ -50,6 +50,15 @@ then
fi
AC_MSG_RESULT($devbuild)
AC_MSG_CHECKING(force sse3 instructions)
AC_ARG_ENABLE(sse3, AC_HELP_STRING([--enable-sse3], [Forces sse3 detection on CPUs]),
sse3=$enableval,sse3=no)
if test "x$sse3" == xyes
then
AC_DEFINE(PCSX2_FORCESSE3,1,[PCSX2_DEVBUILD])
fi
AC_MSG_RESULT(sse3)
dnl Check for virtual memory build
AC_MSG_CHECKING(for virtual memory build)
AC_ARG_ENABLE(vmbuild, AC_HELP_STRING([--enable-vmbuild], [Adds low level virtual memory support to run pcsx2 faster]),
@@ -131,5 +140,6 @@ echo " Target system type: $target"
echo " x86-64 build? $cpu64"
echo " Debug build? $debug"
echo " Dev build? $devbuild"
echo " Force sse3? $sse3"
echo " Recompilers enabled? $recbuild"
echo " Virtual memory build? $vmbuild"

View File

@@ -1294,9 +1294,11 @@ extern "C" void cpudetectSSE3(void* pfnCallSSE3)
#endif
}
#else // linux
// exception handling doesn't work, so disable for x86 builds of linux
#ifndef __x86_64__
#ifdef PCSX2_FORCESSE3
cpucaps.hasStreamingSIMD3Extensions = 1;
#else
// exception handling doesn't work, so disable for x86 builds of linux
cpucaps.hasStreamingSIMD3Extensions = 0;
#endif
// try {