Fix build for PPC970 on FreeBSD pt. 1
authorpkubaj <pkubaj@users.noreply.github.com>
Fri, 28 Jun 2019 10:29:44 +0000 (10:29 +0000)
committerGitHub <noreply@github.com>
Fri, 28 Jun 2019 10:29:44 +0000 (10:29 +0000)
FreeBSD needs DCBT_ARG=0 as well.

common_power.h

index f38b858..5e15b75 100644 (file)
@@ -241,7 +241,7 @@ static inline int blas_quickdivide(blasint x, blasint y){
 #define HAVE_PREFETCH
 #endif
 
-#if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8) || defined(POWER9) || ( defined(PPC970) && defined(OS_DARWIN) )
+#if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8) || defined(POWER9) || ( defined(PPC970) && ( defined(OS_DARWIN) || defined(OS_FREEBSD) ) )
 #define DCBT_ARG       0
 #else
 #define DCBT_ARG       8