# HG changeset patch # User lu_zero # Date 1160248465 0 # Node ID 6020c2f3b16b0df20c0d0022e270febb95661375 # Parent 3edbf131ee4471805f6ca79118649c385c715e04 fix the dcbz check and move it in configure diff -r 3edbf131ee44 -r 6020c2f3b16b ppc/dsputil_ppc.c --- a/ppc/dsputil_ppc.c Sat Oct 07 15:44:14 2006 +0000 +++ b/ppc/dsputil_ppc.c Sat Oct 07 19:14:25 2006 +0000 @@ -175,7 +175,7 @@ /* same as above, when dcbzl clear a whole 128B cache line i.e. the PPC970 aka G5 */ -#ifndef NO_DCBZL +#ifdef HAVE_DCBZL void clear_blocks_dcbz128_ppc(DCTELEM *blocks) { POWERPC_PERF_DECLARE(powerpc_clear_blocks_dcbz128, 1); @@ -205,7 +205,7 @@ } #endif -#ifndef NO_DCBZL +#ifdef HAVE_DCBZL /* check dcbz report how many bytes are set to 0 by dcbz */ /* update 24/06/2003 : replace dcbz by dcbzl to get the intended effect (Apple "fixed" dcbz) diff -r 3edbf131ee44 -r 6020c2f3b16b ppc/dsputil_ppc.h --- a/ppc/dsputil_ppc.h Sat Oct 07 15:44:14 2006 +0000 +++ b/ppc/dsputil_ppc.h Sat Oct 07 19:14:25 2006 +0000 @@ -21,17 +21,6 @@ #ifndef _DSPUTIL_PPC_ #define _DSPUTIL_PPC_ -#ifdef CONFIG_DARWIN -/* The Apple assembler shipped w/ gcc-3.3 knows about DCBZL, previous assemblers don't - We assume here that the Darwin GCC is from Apple.... */ -#if (__GNUC__ * 100 + __GNUC_MINOR__ < 303) -#define NO_DCBZL -#endif -#else /* CONFIG_DARWIN */ -/* I don't think any non-Apple assembler knows about DCBZL */ -#define NO_DCBZL -#endif /* CONFIG_DARWIN */ - #ifdef POWERPC_PERFORMANCE_REPORT void powerpc_display_perf_report(void); /* the 604* have 2, the G3* have 4, the G4s have 6,