changeset 15380:13caaffcd412

dcbzl instruction is only for 64-bit implementations. define NO_DCBZL for ffmpeg. patch by Steven M. Schultz <sms@2BSD.COM>
author nplourde
date Mon, 09 May 2005 17:02:10 +0000
parents fb2f357e52ea
children 3b9f6e52a4cb
files configure
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon May 09 12:43:05 2005 +0000
+++ b/configure	Mon May 09 17:02:10 2005 +0000
@@ -1000,6 +1000,7 @@
 
   ppc)
     _def_arch='#define ARCH_POWERPC 1'
+    _def_dcbzl='#define NO_DCBZL 1'
     _target_arch='TARGET_ARCH_POWERPC = yes'
     iproc='ppc'
     proc=''
@@ -1064,7 +1065,8 @@
 	# gcc 3.2 and up supports 970
 	if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3"; then
 	    case "$proc" in
-		970*) _march='-mcpu=970' _mcpu='-mtune=970' ;;
+		970*) _march='-mcpu=970' _mcpu='-mtune=970'
+                      _def_dcbzl='#undef NO_DCBZL' ;;
     		*) ;;
     	    esac
 	fi
@@ -7337,6 +7339,10 @@
 
 $_def_arch
 
+/* For the PPC.  G5 has the dcbzl when in 64bit mode but G4s and earlier do not
+   have the instruction. */
+$_def_dcbzl
+
 /* libmpeg2 wants ARCH_PPC and the rest of mplayer use ARCH_POWERPC,
  * define ARCH_PPC if ARCH_POWERPC is set to cope with that.
  */