[MPlayer-cvslog] r25368 - in trunk: configure cpudetect.c

diego subversion at mplayerhq.hu
Tue Dec 11 23:37:36 CET 2007


Author: diego
Date: Tue Dec 11 23:37:36 2007
New Revision: 25368

Log:
support for xtensa CPU architecture
patch by Dan Nicolaescu (dann ics.uci edu), Reimar and me


Modified:
   trunk/configure
   trunk/cpudetect.c

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Tue Dec 11 23:37:36 2007
@@ -1263,6 +1263,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
     ;;
@@ -1627,7 +1628,7 @@ EOF
 fi
 
 
-_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L SH3 POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX BFIN GENERIC'
+_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L SH3 POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX BFIN XTENSA GENERIC'
 case "$host_arch" in
   i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
   _arch='X86 X86_32'
@@ -2242,6 +2243,16 @@ EOF
     _optimizing=''
     ;;
 
+  xtensa)
+    _arch='XTENSA'
+    _target_arch='ARCH_XTENSA = yes'
+    iproc='xtensa'
+    proc=''
+    _march=''
+    _mcpu=''
+    _optimizing=''
+    ;;
+
   generic)
     _arch='GENERIC'
     _target_arch='ARCH_GENERIC = yes'

Modified: trunk/cpudetect.c
==============================================================================
--- trunk/cpudetect.c	(original)
+++ trunk/cpudetect.c	Tue Dec 11 23:37:36 2007
@@ -568,5 +568,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-cvslog mailing list