common_power.h: force DCBT_ARG 0 on PPC970 Darwin
authorken-cunningham-webuse <ken.cunningham.webuse@gmail.com>
Thu, 7 Mar 2019 19:41:58 +0000 (11:41 -0800)
committerken-cunningham-webuse <ken.cunningham.webuse@gmail.com>
Thu, 7 Mar 2019 20:03:45 +0000 (12:03 -0800)
without this, we see
../kernel/power/gemv_n.S:427:Parameter syntax error
and many more similar entries

that relates to this assembly command
dcbt 8, r24, r18

this change makes the DCBT_ARG = 0
and openblas builds through to completion on PowerMac 970
Tests pass

common_power.h

index e3a1a7a..68087b0 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)
+#if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8) || ( defined(PPC970) && defined(OS_DARWIN) )
 #define DCBT_ARG       0
 #else
 #define DCBT_ARG       8