You are not logged in.

Read the FAQ and Knowledge Base before posting.
WiFi not emulated and not supported!!
We won't make a 3DS/2DS emulator.



#1 2010-04-26 07:00:09

lig
Member
Registered: 2010-04-24
Posts: 20

Linux SS2 build

Is matrix.h the only source code file that had sse instructions? I made a linux sse build by the way. Although I'm positive I did not do it the right way. I just kinda hacked away and then by some dumb luck it actually worked. I edited the configure.ac file to give all the makefiles the -msse and -msse2 arguments in the CXXFLAGS and then I just deleted all the preprocessor #ifdef ENABLE_SSE and #ifdef ENABLE_SSE2 and their corresponding #else statements and #endif's.

Offline

#2 2010-04-26 07:08:33

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 4,944

Re: Linux SS2 build

you did it the wrong way. types.h already takes care of all that if you issue -msse
you can see as well as anyone else where sse instructions get used by searching for the macros which enable them.

Online

#3 2010-04-26 07:37:39

lig
Member
Registered: 2010-04-24
Posts: 20

Re: Linux SS2 build

Ok so really all you have to do is add this code to configure.ac:

AC_ARG_ENABLE(sse, [  --enable-sse            Enable SSE support], [
CFLAGS="$CFLAGS -msse -msse2"
CXXFLAGS="$CXXFLAGS -msse -msse2"
])

And then just you can just run the commands:

autogen.sh
./configure --enable-sse
make
sudo make install

to make an sse linux build.

Offline

Board footer

Powered by FluxBB