[MPlayer-dev-eng] [patch] support another CPU architecture

Dan Nicolaescu dann at ics.uci.edu
Tue Dec 11 09:29:50 CET 2007


Hi,

The small patch make mplayer work on the Tensilica Xtensa architecture.
Can someone please check it in?

diff -rup --exclude='*.[ao]' ../MPlayer-1.0rc2.orig/configure ./configure
--- ../MPlayer-1.0rc2.orig/configure	2007-10-07 12:49:33.000000000 -0700
+++ ./configure	2007-10-24 16:41:32.000000000 -0700
@@ -1267,6 +1266,7 @@ if test -z "$_target" ; then
       s390x) host_arch=s390x ;;
       mips*) host_arch=mips ;;
       vax) host_arch=vax ;;
+      xtensa*) host_arch=xtensa ;;
       *) host_arch=UNKNOWN ;;
     esac
     ;;
@@ -2256,6 +2256,17 @@ EOF
     _optimizing=''
     ;;
 
+  xtensa)
+    _def_arch='#define ARCH_XTENSA 1'
+    _target_arch='TARGET_ARCH_XTENSA = yes'
+    iproc='xtensa'
+    proc=''
+    _march=''
+    _mcpu=''
+    _optimizing=''
+    ;;
+
+
   *)
     echo "The architecture of your CPU ($host_arch) is not supported by this configure script"
     echo "It seems nobody has ported MPlayer to your OS or CPU type yet."
diff -rup --exclude='*.[ao]' ../MPlayer-1.0rc2.orig/cpudetect.c ./cpudetect.c
--- ../MPlayer-1.0rc2.orig/cpudetect.c	2007-10-07 12:49:33.000000000 -0700
+++ ./cpudetect.c	2007-10-24 16:41:32.000000000 -0700
@@ -570,5 +570,9 @@ void GetCpuCaps( CpuCaps *caps)
 #ifdef ARCH_VAX
 	mp_msg(MSGT_CPUDETECT,MSGL_INFO, "CPU: Digital VAX\n" );
 #endif
+
+#ifdef ARCH_XTENSA
+	mp_msg(MSGT_CPUDETECT,MSGL_INFO, "CPU: Tensilica Xtensa\n" );
+#endif
 }
 #endif /* !ARCH_X86 */




More information about the MPlayer-dev-eng mailing list