# HG changeset patch # User gpoirier # Date 1185438102 0 # Node ID 463f7715f8eee316e01ee5a76a0d03d9d9ccc566 # Parent 9cd0d6ae322d617ca4af7f9c5012ff586e6fc9a8 add Hitachi SuperH (SH3) support patch by Alex Ferguson %b_linuz A yahoo P com% diff -r 9cd0d6ae322d -r 463f7715f8ee Changelog --- a/Changelog Wed Jul 25 19:02:29 2007 +0000 +++ b/Changelog Thu Jul 26 08:21:42 2007 +0000 @@ -81,6 +81,7 @@ Ports: * further Intel Mac fixes + * Hitachi SuperH (SH3) support Drivers: * ALSA audio output now sets the non-audio bit for AC3 passthrough even diff -r 9cd0d6ae322d -r 463f7715f8ee configure --- a/configure Wed Jul 25 19:02:29 2007 +0000 +++ b/configure Thu Jul 26 08:21:42 2007 +0000 @@ -158,6 +158,13 @@ esac } +sh3() { + case "$host_arch" in + sh3) return 0;; + *) return 1;; + esac +} + # not boolean test: implement the posix shell "!" operator for a # non-posix /bin/sh. # usage: not {command} @@ -1192,7 +1199,7 @@ # host's CPU/instruction set host_arch=`uname -p 2>&1` case "$host_arch" in - i386|sparc|ppc|alpha|arm|mips|vax) + i386|sparc|ppc|alpha|arm|sh3|mips|vax) ;; powerpc) # Darwin returns 'powerpc' host_arch=ppc @@ -1221,6 +1228,7 @@ sparc64) host_arch=sparc64 ;; parisc*|hppa*|9000*) host_arch=hppa ;; arm*|zaurus|cats) host_arch=arm ;; + sh3) host_arch=sh3 ;; s390) host_arch=s390 ;; s390x) host_arch=s390x ;; mips*) host_arch=mips ;; @@ -1593,7 +1601,7 @@ fi -_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX GENERIC' +_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L SH3 POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX 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' @@ -1966,6 +1974,16 @@ _optimizing='' ;; + sh3) + _arch='SH3' + _target_arch='ARCH_SH3 = yes' + iproc='sh3' + proc='' + _march='-m3' + _mcpu='-ml' + _optimizing='' + ;; + ppc|powerpc) _arch='POWERPC PPC' _def_dcbzl='#define NO_DCBZL 1'