[MPlayer-users] Compiling mplayer for powerpc 440 with fpu

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Sat Feb 24 17:58:23 CET 2007


On Wednesday, 21 February 2007 at 20:38, Patrice Bouchand wrote:
> 
> 
> > Apparently -mcpu=440fp is the one. However, it's possible, that GCC
> > "optimizations" actually make the code slower.
> > 
> > Are you compiling it in 32bit or 64bit mode?
> 
> I'm compiling in 32bits mode. 
> 
> 
> > MPlayer's configure script doesn't know about the 440 model so I guess
> > generic optimizations are used. Please include configure.log, config.mak
> > and `cat /proc/cpuinfo` so that we can add support.
> 
> The content of /proc/cpuinfo is the following:
> 
> processor       : 0
> cpu             : 440EP Rev. B
> revision        : 24.211 (pvr 4222 18d3)
> bogomips        : 498.68
> vendor          : AMCC
> 
> configure.log and config.mak are attached with this mail.
> 
> Thanks a lot for your help.

Please check if the attached patch works for you (and attach
configure.log and config.mak after re-running configure, please).

Regards,
R.

-- 
MPlayer developer and RPMs maintainer: http://mplayerhq.hu http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 22335)
+++ configure	(working copy)
@@ -1912,7 +1912,7 @@
 	    POWER)  _march='-mcpu=power'  _mcpu='-mtune=power'  ;;
 	    POWER2) _march='-mcpu=power2' _mcpu='-mtune=power2' ;;
 	    POWER3) _march='-mcpu=power3' _mcpu='-mtune=power3' ;;
-    	    *) ;;
+    	    *) _march='-mcpu=common' ;;
         esac
 	# gcc 3.1(.1) and up supports 7400 and 7450
 	if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "1" || test "$_cc_major" -ge "4"; then
@@ -1937,6 +1937,14 @@
 		*) ;;
 	    esac
 	fi
+	# gcc 3.4 and up supports 440*
+	if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "4" || test "$_cc_major" -ge "4"; then
+	    case "$proc" in
+                440EP) _march='-mcpu=440fp' _mcpu='-mtune=440fp' ;;
+                440G*) _march='-mcpu=440' _mcpu='-mtune=440' ;;
+		*) ;;
+	    esac
+	fi
 	# gcc 4.0 and up supports POWER5
 	if test "$_cc_major" -ge "4"; then
 	    case "$proc" in


More information about the MPlayer-users mailing list