Mercurial > mplayer.hg
changeset 25340:b6107034e981
support for xtensa CPU architecture
patch by Dan Nicolaescu (dann ics.uci edu), Reimar and me
author | diego |
---|---|
date | Tue, 11 Dec 2007 22:37:36 +0000 |
parents | f7421e2698c4 |
children | baddb0681b2e |
files | configure cpudetect.c |
diffstat | 2 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Tue Dec 11 22:31:57 2007 +0000 +++ b/configure Tue Dec 11 22:37:36 2007 +0000 @@ -1263,6 +1263,7 @@ s390x) host_arch=s390x ;; mips*) host_arch=mips ;; vax) host_arch=vax ;; + xtensa*) host_arch=xtensa ;; *) host_arch=UNKNOWN ;; esac ;; @@ -1627,7 +1628,7 @@ 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 @@ _optimizing='' ;; + xtensa) + _arch='XTENSA' + _target_arch='ARCH_XTENSA = yes' + iproc='xtensa' + proc='' + _march='' + _mcpu='' + _optimizing='' + ;; + generic) _arch='GENERIC' _target_arch='ARCH_GENERIC = yes'
--- a/cpudetect.c Tue Dec 11 22:31:57 2007 +0000 +++ b/cpudetect.c Tue Dec 11 22:37:36 2007 +0000 @@ -568,5 +568,9 @@ #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 */